From: Michael Tremer Date: Sat, 11 Jan 2025 17:56:20 +0000 (+0000) Subject: pakfire: Clang does not seem to like if we are checking for NULL X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4e52eed00034956d759905b67d6cdc558d21a60;p=people%2Fric9%2Fpakfire.git pakfire: Clang does not seem to like if we are checking for NULL The function is delcared with nonnull(), and therefore Clang complains that we are actually checking this again. Probably fair. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/pakfire.c b/src/pakfire/pakfire.c index 7b30b6ffa..1f7702876 100644 --- a/src/pakfire/pakfire.c +++ b/src/pakfire/pakfire.c @@ -1068,7 +1068,7 @@ const char* pakfire_get_path(struct pakfire* pakfire) { int pakfire_openat(struct pakfire* pakfire, const char* path, int flags) { // Make paths relative - while (path && *path == '/') + while (*path == '/') path++; return openat(pakfire->fd, path, flags);