summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-dnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcaja-private/caja-dnd.c b/libcaja-private/caja-dnd.c
index 65918b08..b2a7601c 100644
--- a/libcaja-private/caja-dnd.c
+++ b/libcaja-private/caja-dnd.c
@@ -204,7 +204,7 @@ caja_drag_build_selection_list (GtkSelectionData *data)
if (*p == '\n' || *p == '\0')
{
result = g_list_prepend (result, item);
- if (p == 0)
+ if (*p != '\n')
{
g_warning ("Invalid x-special/mate-icon-list data received: "
"missing newline character.");