]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/xtypes-basic.c
xtypes: Added FIXME with possible segfault.
[libucw.git] / ucw / xtypes-basic.c
index 5d149b6f54d8a29ff271515c1acbe323867d36c9..fdb4f339ad9e7e749006ff934722edefeb037a32 100644 (file)
@@ -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;