From: Michael Tremer Date: Sat, 14 Dec 2024 15:44:45 +0000 (+0000) Subject: path: Make the static analyzer happy again X-Git-Tag: 0.9.30~703 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58390aabe16d8f3fb349b9f5b6effcdfb01747cb;p=pakfire.git path: Make the static analyzer happy again Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/path.c b/src/libpakfire/path.c index 955ca41fa..80bd71808 100644 --- a/src/libpakfire/path.c +++ b/src/libpakfire/path.c @@ -517,6 +517,10 @@ int pakfire_path_is_absolute(const char* s) { if (r < 0) return r; + // Make the static analyzer happy + if (!path) + return -EINVAL; + // Is this absolute? r = path->is_absolute;