summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-08-08 13:16:38 +0300
committerYonit Halperin <yhalperi@redhat.com>2010-08-23 08:19:09 +0300
commita5194d37e978d0a065a82f931293fceaaf43dc19 (patch)
tree5e791f6b83ed972af33bb45765f5ecd0c6cad891
parenteb5de022d40462c201a1aa8933f80ebdc7e0deb7 (diff)
downloadspice-a5194d37e978d0a065a82f931293fceaaf43dc19.tar.gz
spice-a5194d37e978d0a065a82f931293fceaaf43dc19.tar.xz
spice-a5194d37e978d0a065a82f931293fceaaf43dc19.zip
client: fix - exit on bad display-effect argument
-rw-r--r--client/application.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 3dafbc6c..490cd8ca 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1926,6 +1926,8 @@ bool Application::set_disabled_display_effects(CmdLineParser& parser, char *val,
disp_setting._disable_animation = true;
} else {
Platform::term_printf("%s: bad display effect type \"%s\"\n", arg0, val);
+ _exit_code = SPICEC_ERROR_CODE_INVALID_ARG;
+ return false;
}
} while ((val = parser.next_argument()));