[easytag/wip/application-window: 102/108] Remove duplicate NULL check in et_run_program()



commit 0aaaa6eea989efc59a459c09ed33ea0c68fd1dcd
Author: David King <amigadave amigadave com>
Date:   Wed Aug 27 20:50:58 2014 +0100

    Remove duplicate NULL check in et_run_program()
    
    Found with cppcheck.

 src/misc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 0879124..984a17d 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -244,8 +244,8 @@ et_run_program (const gchar *program_name, GList *args_list)
 
     g_return_val_if_fail (program_name != NULL && args_list != NULL, FALSE);
 
-    /* Check if a name for the program have been supplied */
-    if (!program_name && *program_name)
+    /* Check if a name for the program has been supplied */
+    if (*program_name)
     {
         GtkWidget *msgdialog;
 


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