From: Robert Kessl Date: Tue, 22 Jul 2014 13:02:23 +0000 (+0200) Subject: xtypes: fixed error in xt_bool parser X-Git-Tag: v6.1~3^2~66 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=93af84243ca8181a97bcc43142df30114b32f315;p=libucw.git xtypes: fixed error in xt_bool parser --- 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; }