diff options
Diffstat (limited to 'lib/frrscript.c')
| -rw-r--r-- | lib/frrscript.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/frrscript.c b/lib/frrscript.c index ccb790dc4a..4fee79991a 100644 --- a/lib/frrscript.c +++ b/lib/frrscript.c @@ -103,6 +103,10 @@ char *frrscript_names_get_script_name(const char *function_name) frrscript_names_find(&frrscript_names_hash, &lookup); if (!snhe) return NULL; + + if (snhe->script_name[0] == '\0') + return NULL; + return snhe->script_name; } |
