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



commit e227bd7c4f00f085ad7a654a6225b76a9b7b76e0
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]