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

BugFix: check validity of the module prefix.

parent 223b721e
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ static void parse_prefix(char *result, stack *stk, struct resolve_hash_s **hres,
/** check if the dependencies is a external one. In this
* case, the service is not considered as part of the ns */
if (hash->res.inns && (!strcmp(hash->res.sa.s + hash->res.inns, prefix)) && str_start_with(hash->res.sa.s + hash->res.name, prefix))
if (hash->res.inns && (!strcmp(hash->res.sa.s + hash->res.inns, prefix)) && !str_start_with(hash->res.sa.s + hash->res.name, prefix))
auto_strings(result + strlen(result), prefix, ":", stk->s + pos, " ") ;
else
auto_strings(result + strlen(result), hash->res.sa.s + hash->res.name, " ") ;
......
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