preventive fix (missing check) found by Alfons
authorColin Leroy <colin@colino.net>
Fri, 15 Nov 2002 22:26:04 +0000 (22:26 +0000)
committerColin Leroy <colin@colino.net>
Fri, 15 Nov 2002 22:26:04 +0000 (22:26 +0000)
ChangeLog.claws
configure.in
src/folderview.c

index b73f112..4af941c 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-15 [colin]     0.8.5claws156
+
+       * src/folderview.c
+               Preventive fix (missing check) found by
+               Alfons
+
 2002-11-15 [paul]
 
        * NEWS
index 1181928..118c15b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws155
+EXTRA_VERSION=claws156
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 8dd2d1c..cb04255 100644 (file)
@@ -2635,7 +2635,7 @@ static void folderview_drag_received_cb(GtkWidget        *widget,
                item = gtk_ctree_node_get_row_data(GTK_CTREE(widget), node);
                src_item = folder_find_item_from_path(source);
 
-               if (!src_item || src_item->stype != F_NORMAL) {
+               if (!item || !src_item || src_item->stype != F_NORMAL) {
                        gtk_drag_finish(drag_context, FALSE, FALSE, time);                      
                        return;
                }