]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/xtypes-basic.c
xtypes: fixed error in xt_bool parser
[libucw.git] / ucw / xtypes-basic.c
index 4ee14cfa111a17da40c62eb7cdba7fdcb274cd7b..c3dc1d6fb7fcb2025e94aee8a7a191987ed459b4 100644 (file)
@@ -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;
     }