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 committed Feb 1, 2024
1 parent 552c4ad commit 693e329
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 @@ -1156,7 +1156,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 693e329

Please sign in to comment.