From 9c43db5f35819ce787a79915aacb1840a98fdff4 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 17 Jul 2014 10:53:54 +0200 Subject: [PATCH] xtypes: Added FIXME with possible segfault. --- 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 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; -- 2.39.5