From c9a637d8541cd91373dcc042c93933f0686b5499 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Mon, 3 Aug 2020 22:13:59 +0530 Subject: [PATCH] datasets: fix null pointer deref --- src/datasets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasets.c b/src/datasets.c index 9104ef2e99..64c6b9c033 100644 --- a/src/datasets.c +++ b/src/datasets.c @@ -538,7 +538,7 @@ static bool DatasetIsStatic(const char *save, const char *load) /* A set is static if it does not have any dynamic properties like * save and/or state defined but has load defined. * */ - if ((load != NULL || strlen(load) > 0) && + if ((load != NULL && strlen(load) > 0) && (save == NULL || strlen(save) == 0)) { return true; }