Skip to content
Snippets Groups Projects
Commit 76dfd10c authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

warn at bad key during parenthesis parsing

parent 90bf6c35
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
#include <sys/types.h>
#include <pwd.h>
#include <errno.h>
//#include <stdio.h>
#include <stdio.h>
#include <oblibs/bytes.h>
#include <oblibs/string.h>
......@@ -928,6 +928,7 @@ int key_get_next_id(stralloc *sa, char const *string,size_t *pos)
if (r == -1) goto err ;
if (!stralloc_0(&kp)) goto err ;
id = get_enumbyid(kp.s,key_enum_el) ;
if (id == -1 && kp.len > 1) log_warn("unknown key: ",kp.s,": at parenthesis parse") ;
}
newpos = get_rlen_until(string,')',newpos) ;
if (newpos == -1) goto err ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment