From a3807f46f81745f4125460bb7e92b4c417573bb8 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 4 Jan 2022 10:08:07 +0100 Subject: panel-run-dialog: address of array 'dent->d_name' will always evaluate to 'true' --- mate-panel/panel-run-dialog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c index a033fe1f..e426cd56 100644 --- a/mate-panel/panel-run-dialog.c +++ b/mate-panel/panel-run-dialog.c @@ -1317,8 +1317,7 @@ fill_files_from (const char *dirname, char *item; const char *suffix; - if (!dent->d_name || - dent->d_name [0] != prefix) + if (dent->d_name [0] != prefix) continue; file = g_build_filename (dirname, dent->d_name, NULL); -- cgit v1.2.1