preventive fix (missing check) found by Alfons

This commit is contained in:
Colin Leroy 2002-11-15 22:26:04 +00:00
parent 0f48b23b1c
commit 38c2094cac
3 changed files with 8 additions and 2 deletions

View 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

View 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

View 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;
}