[glib] GApplication: exit_status unset in one branch



commit 4baad1acbff936284c5367afdb4494cf081ee394
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Oct 27 09:26:01 2010 -0400

    GApplication: exit_status unset in one branch
    
    Closes #633206

 gio/gapplication.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index d81ea80..e03d648 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -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;



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