GApplication: exit_status unset in one branch
authorRyan Lortie <desrt@desrt.ca>
Wed, 27 Oct 2010 13:26:01 +0000 (09:26 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 27 Oct 2010 13:26:01 +0000 (09:26 -0400)
Closes #633206

gio/gapplication.c

index d81ea80..e03d648 100644 (file)
@@ -227,7 +227,7 @@ g_application_real_local_command_line (GApplication   *application,
 
       if (application->priv->flags & G_APPLICATION_IS_SERVICE)
         {
-          if (n_args > 1)
+          if ((*exit_status = n_args > 1))
             {
               g_printerr ("GApplication service mode takes no arguments.\n");
               application->priv->flags &= ~G_APPLICATION_IS_SERVICE;