From d570f51e247d48ca23628329b284aaa0c0349a9c Mon Sep 17 00:00:00 2001 From: Ben Allan Date: Thu, 1 Feb 2024 14:53:39 -0700 Subject: [PATCH] fix missing ldmsd_plugins_usage check for all that crashes ldmsd_plugins_usage checking for input 'all' must be done only if the input is not already null. --- ldms/src/ldmsd/ldmsd_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldms/src/ldmsd/ldmsd_config.c b/ldms/src/ldmsd/ldmsd_config.c index 345e1aa14..ab705dc8b 100644 --- a/ldms/src/ldmsd/ldmsd_config.c +++ b/ldms/src/ldmsd/ldmsd_config.c @@ -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");