X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fxtypes-basic.c;h=c3dc1d6fb7fcb2025e94aee8a7a191987ed459b4;hb=93af84243ca8181a97bcc43142df30114b32f315;hp=4ee14cfa111a17da40c62eb7cdba7fdcb274cd7b;hpb=c5d58cb79212938d4fb4f2e9f9d34fa8179e569a;p=libucw.git 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; }