[gnome-flashback] end-session-dialog: fix sizeof-pointer-div warning



commit 01934a2ecc8126b6b6b5062c74c6b675768dc8d4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Sep 9 00:53:40 2018 +0300

    end-session-dialog: fix sizeof-pointer-div warning

 gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c 
b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
index b5f8fa2..8892ad5 100644
--- a/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
+++ b/gnome-flashback/libend-session-dialog/gf-inhibit-dialog.c
@@ -130,7 +130,7 @@ gf_inhibit_dialog_set_inhibitor_paths (GfInhibitDialog    *dialog,
 
   gtk_list_store_clear (priv->list_store);
 
-  if (G_N_ELEMENTS (paths) == 0 || paths[0] == NULL)
+  if (paths == NULL || paths[0] == NULL)
     update_dialog_text (dialog);
   else
     populate_model (dialog);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]