From 5880c9e365949f846317d22824f853fcb384aea5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 30 May 2014 23:30:56 -0400 Subject: [PATCH] gtk-reftest: Don't warn needlessly Only warn about the --direction argument if the option was actually specified. --- testsuite/reftests/gtk-reftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c index 0e30d7cdc2..74438c12a7 100644 --- a/testsuite/reftests/gtk-reftest.c +++ b/testsuite/reftests/gtk-reftest.c @@ -70,7 +70,7 @@ parse_command_line (int *argc, char ***argv) gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL); else if (g_strcmp0 (arg_direction, "ltr") == 0) gtk_widget_set_default_direction (GTK_TEXT_DIR_LTR); - else + else if (arg_direction != NULL) g_printerr ("Invalid argument passed to --direction argument. Valid arguments are 'ltr' and 'rtl'\n"); return TRUE;