Skip to content

Commit

Permalink
fix missing ldmsd_plugins_usage check for all that crashes
Browse files Browse the repository at this point in the history
ldmsd_plugins_usage checking for input 'all' must be done
only if the input is not already null.
  • Loading branch information
baallan authored and tom95858 committed Feb 2, 2024
1 parent 3cbd73e commit d570f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldms/src/ldmsd/ldmsd_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ int ldmsd_plugins_usage(const char *plugname)
char *libpath;
char *saveptr = NULL;

if (0 == strcmp(plugname, "all"))
if (plugname && 0 == strcmp(plugname, "all"))
plugname = NULL;

char *path = getenv("LDMSD_PLUGIN_LIBPATH");
Expand Down

0 comments on commit d570f51

Please sign in to comment.