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

fix empty string

parent 3c5c35bf
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@
* */
int parse_compute_list(resolve_wrapper_t_ref wres, stralloc *sa, uint32_t *res, uint8_t opts)
{
if (!sa->len)
return resolve_add_string(wres, "") ;
int r, found = 0 ;
size_t len = sa->len, pos = 0 ;
size_t nelement = sastr_nelement(sa) ;
......
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