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

avoid HEAP allocation

parent c70bd074
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
* @Return 1 if found
* @Return 2 if found but marked disabled
* @Return -1 system error */
int service_isenabledat(stralloc *tree, char const *sv)
int service_isenabledat(char *atree, char const *sv)
{
log_flow() ;
......@@ -96,7 +96,7 @@ int service_isenabledat(stralloc *tree, char const *sv)
e = 2 ;
}
if (!auto_stra(tree, treename)) {
if (!auto_strings(atree, treename)) {
e = -1 ;
goto freed ;
}
......
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