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

close the string

parent 195da49b
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,12 @@ int service_frontend_src(stralloc *sasrc, char const *name, char const *src, cha
auto_strings(result, srcname, name) ;
if (sastr_cmp(sasrc, result) == -1)
if (!sastr_add_string(sasrc, result))
if (sastr_cmp(sasrc, result) == -1) {
if (!sastr_add_string(sasrc, result) ||
!stralloc_0(sasrc))
goto err ;
sasrc->len-- ;
}
break ;
......
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