core: pvapi - remove useless condition
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:08:24 +0000 (09:08 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:08:24 +0000 (09:08 +0200)
src/core/pvapi.c

index 2f85783..7e3d7b9 100644 (file)
@@ -1096,8 +1096,6 @@ int pv_parse_format(str *in, pv_elem_p *el)
                        goto error;
                p0 = p + len;
 
-               if(p0==NULL)
-                       goto error;
                if(*p0 == '\0')
                        break;
                p = p0;