mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 16:52:25 +00:00
Merge pull request #9922 from donaldsharp/fix_scripting
lib: Return Null when we have an empty string for script name
This commit is contained in:
commit
f69bc0e919
@ -103,6 +103,10 @@ char *frrscript_names_get_script_name(const char *function_name)
|
|||||||
frrscript_names_find(&frrscript_names_hash, &lookup);
|
frrscript_names_find(&frrscript_names_hash, &lookup);
|
||||||
if (!snhe)
|
if (!snhe)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (snhe->script_name[0] == '\0')
|
||||||
|
return NULL;
|
||||||
|
|
||||||
return snhe->script_name;
|
return snhe->script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user