[PATCH v2 2/2] spiceqxl: Reject invalid boolean values, just like for other options.

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

 



Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
---
 src/qxl_option_helpers.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qxl_option_helpers.c b/src/qxl_option_helpers.c
index a42cc84..2aba677 100644
--- a/src/qxl_option_helpers.c
+++ b/src/qxl_option_helpers.c
@@ -49,6 +49,6 @@ int get_bool_option(OptionInfoPtr options, int option_index,
         return TRUE;
     }
 
-    fprintf(stderr, "spice: treating invalid boolean %s as true: %s\n", env_name, value);
-    return TRUE;
+    fprintf(stderr, "spice: invalid %s: %s\n", env_name, value);
+    exit(1);
 }
-- 
2.5.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]