From 93af84243ca8181a97bcc43142df30114b32f315 Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Tue, 22 Jul 2014 15:02:23 +0200 Subject: [PATCH] xtypes: fixed error in xt_bool parser --- ucw/xtypes-basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucw/xtypes-basic.c b/ucw/xtypes-basic.c index 4ee14cfa..c3dc1d6f 100644 --- a/ucw/xtypes-basic.c +++ b/ucw/xtypes-basic.c @@ -118,7 +118,7 @@ static const char *xt_bool_parse(const char *str, void *dest, struct mempool *po if(!str) return "Cannot parse bool: string is NULL."; if(str[1] == 0) { - if(str[0] == '1') { + if(str[0] == '0') { *((bool *)dest) = false; return NULL; } -- 2.39.5