GApplication: exit_status unset in one branch

Closes #633206
This commit is contained in:
Ryan Lortie 2010-10-27 09:26:01 -04:00
parent f7a918dcb9
commit 4baad1acbf

View 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;