[gnome-panel] run-dialog: remove unneeded null pointer check
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] run-dialog: remove unneeded null pointer check
- Date: Sun, 8 Mar 2020 13:19:10 +0000 (UTC)
commit 843537d2f024ff83ed3ac49f18682c72b08c9828
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 8 13:53:38 2020 +0200
run-dialog: remove unneeded null pointer check
CID 1445699.
gnome-panel/panel-run-dialog.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index c6ae5c427..be9c1dd29 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -1346,9 +1346,8 @@ fill_files_from (const char *dirname,
char *file;
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]