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

fix tree.ncontents count

parent c295a1c5
No related branches found
No related tags found
No related merge requests found
......@@ -42,10 +42,15 @@ void tree_service_add(char const *base, char const *treename, char const *servic
if (!sastr_sortndrop_element(&sa))
log_dieu(LOG_EXIT_SYS, "sort string") ;
} else if (!sastr_add_string(&sa, service))
log_dieu(LOG_EXIT_SYS, "add string") ;
tres.ncontents = sastr_nelement(&sa) ;
tres.ncontents++ ;
} else {
if (!sastr_add_string(&sa, service))
log_dieu(LOG_EXIT_SYS, "add string") ;
tres.ncontents++ ;
}
if (!sastr_rebuild_in_oneline(&sa))
log_dieu(LOG_EXIT_SYS, "rebuild stralloc list") ;
......
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