From: Pavel Charvat Date: Thu, 17 Jul 2014 08:53:54 +0000 (+0200) Subject: xtypes: Added FIXME with possible segfault. X-Git-Tag: v6.1~3^2~88^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9c43db5f35819ce787a79915aacb1840a98fdff4;p=libucw.git xtypes: Added FIXME with possible segfault. --- diff --git a/ucw/xtypes-basic.c b/ucw/xtypes-basic.c index 5d149b6f..fdb4f339 100644 --- a/ucw/xtypes-basic.c +++ b/ucw/xtypes-basic.c @@ -97,7 +97,7 @@ static const char *xt_bool_format(void *src, u32 fmt UNUSED, struct mempool *poo static const char *xt_bool_parse(const char *str, void *dest, struct mempool *pool UNUSED) { - if(str[1] == 0) { + if(str[1] == 0) { // FIXME: Possible segfault if(str[0] == '1') { *((bool *)dest) = false; return NULL;