dtfile/Command: CID 88819
authorJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 21:41:51 +0000 (15:41 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 22:25:52 +0000 (16:25 -0600)
cde/programs/dtfile/Command.c

index dba61dc39945d2d48f2ca253493c0766eabd1f39..cde4cf3dc5745caffd4ae97bae1670e858166b40 100644 (file)
@@ -1003,7 +1003,7 @@ ProcessBufferDropOnFolder (
       {
          DirectorySet * directory_data;
          char * directory_name;
-         FileViewData * file_view_data;
+         FileViewData * file_view_data = NULL;
          int j;
 
          DeselectAllFiles (file_mgr_data);
@@ -1024,7 +1024,8 @@ ProcessBufferDropOnFolder (
                }
             }
          }
-         PositionFileView(file_view_data, file_mgr_data);
+         if (file_view_data)
+             PositionFileView(file_view_data, file_mgr_data);
       }
    } /* endif for Tree View */