diff options
author | Harald Judt <h.judt@gmx.at> | 2015-04-22 13:00:19 +0200 |
---|---|---|
committer | Harald Judt <h.judt@gmx.at> | 2015-04-22 13:43:23 +0200 |
commit | 957012d6f4afcd8648784ad7de4fc676d457898a (patch) | |
tree | f463c4ad101cd3ba2901e8e833886546b2f3f9bb /thunar/thunar-dbus-service.c | |
parent | 460f70261d80f65ef7dd6757b173bbf835ceb5c5 (diff) | |
download | thunar-957012d6f4afcd8648784ad7de4fc676d457898a.tar.gz |
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.
Diffstat (limited to 'thunar/thunar-dbus-service.c')
-rw-r--r-- | thunar/thunar-dbus-service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thunar/thunar-dbus-service.c b/thunar/thunar-dbus-service.c index 2f26f98f..56d0bf2a 100644 --- a/thunar/thunar-dbus-service.c +++ b/thunar/thunar-dbus-service.c @@ -1288,7 +1288,7 @@ thunar_dbus_service_unlink_files (ThunarDBusService *dbus_service, } /* check if we succeeded */ - if (err == NULL) + if (err == NULL && file_list != NULL) { /* tell the application to move the specified files to the trash */ application = thunar_application_get (); |