From 957012d6f4afcd8648784ad7de4fc676d457898a Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Wed, 22 Apr 2015 13:00:19 +0200 Subject: [PATCH] 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. --- thunar/thunar-dbus-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); -- GitLab