[easytag/wip/application-window: 48/52] Remove duplicate NULL check in et_run_program()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 48/52] Remove duplicate NULL check in et_run_program()
- Date: Wed, 3 Sep 2014 18:56:09 +0000 (UTC)
commit f8c4d8c29716ad1fc09844a3f7316edba352b5b1
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]