From 4ca677ef422cb0e3aef46d00f2718ce7f0317c6d Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Thu, 25 Aug 2022 22:26:28 +0200 Subject: Break the code to make it compile with -fanalyzer --- src/util/fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/fs.c') diff --git a/src/util/fs.c b/src/util/fs.c index 16a2c36..8a192b6 100644 --- a/src/util/fs.c +++ b/src/util/fs.c @@ -146,7 +146,8 @@ void which( path = strdup(search_path); } #ifdef _CS_PATH - if (NULL == search_path) { + /* if (NULL == search_path) { */ /* <-- this line produces a leak warning */ + else { /* fall back to POSIX path */ size_t pathlen = confstr(_CS_PATH, NULL, 0); path = malloc(pathlen); -- cgit v1.2.3