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

close the string framboise

parent 4f386db7
No related branches found
No related tags found
No related merge requests found
...@@ -1488,6 +1488,7 @@ int ss_resolve_svtree(stralloc *svtree,char const *svname,char const *tree) ...@@ -1488,6 +1488,7 @@ int ss_resolve_svtree(stralloc *svtree,char const *svname,char const *tree)
if (!auto_stra(&tmp,name,SS_SVDIRS)) goto err ; if (!auto_stra(&tmp,name,SS_SVDIRS)) goto err ;
if (ss_resolve_check(tmp.s,svname)) if (ss_resolve_check(tmp.s,svname))
{ {
svtree->len = 0 ;
if (!tree || (tree && !strcmp(name,tree))){ if (!tree || (tree && !strcmp(name,tree))){
if (!stralloc_copy(svtree,&tmp)) goto err ; if (!stralloc_copy(svtree,&tmp)) goto err ;
copied = 1 ; copied = 1 ;
...@@ -1504,7 +1505,7 @@ int ss_resolve_svtree(stralloc *svtree,char const *svname,char const *tree) ...@@ -1504,7 +1505,7 @@ int ss_resolve_svtree(stralloc *svtree,char const *svname,char const *tree)
if (found > 2 && tree) found = 2 ; if (found > 2 && tree) found = 2 ;
if (!copied) found = 1 ; if (!copied) found = 1 ;
if (!stralloc_0(svtree)) goto err ;
freed: freed:
stralloc_free(&satree) ; stralloc_free(&satree) ;
stralloc_free(&tmp) ; stralloc_free(&tmp) ;
......
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