[totem] grilo: Drop redundant if-statement



commit 5610a3798e515857257a17e3e94332440ba1f91f
Author: Philip Withnall <withnall endlessm com>
Date:   Fri Sep 8 16:17:22 2017 +0100

    grilo: Drop redundant if-statement
    
    As spotted by dcb.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787262
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 src/totem-grilo.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 5ecc82a..01adeab 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1744,9 +1744,6 @@ totem_grilo_drop_files (TotemGrilo       *self,
        list = g_uri_list_extract_uris ((const char *) gtk_selection_data_get_data (data));
 
        for (i = 0; list[i] != NULL; i++) {
-               if (list[i] == NULL)
-                       continue;
-
                g_debug ("Preparing to add '%s' as dropped file", list[i]);
                totem_grilo_add_item_to_recent (self, list[i], NULL, FALSE);
        }


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