Commit 957012d6 authored by Harald Judt's avatar Harald Judt

Coverity CID 60620: Explicit null dereferenced

CID 60620 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
17. var_deref_model: Passing null pointer file_list to
thunar_application_unlink_files, which dereferences it.
parent 460f7026
...@@ -1288,7 +1288,7 @@ thunar_dbus_service_unlink_files (ThunarDBusService *dbus_service, ...@@ -1288,7 +1288,7 @@ thunar_dbus_service_unlink_files (ThunarDBusService *dbus_service,
} }
/* check if we succeeded */ /* check if we succeeded */
if (err == NULL) if (err == NULL && file_list != NULL)
{ {
/* tell the application to move the specified files to the trash */ /* tell the application to move the specified files to the trash */
application = thunar_application_get (); application = thunar_application_get ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment