]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Fix return values when generating the distro tag
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:33:29 +0000 (15:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:34:51 +0000 (15:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index 8f2c203fa5bc541e27029410f5ff7c09e3c17d8b..b030527dc99d6df21a305db7b54f53a3e21c167c 100644 (file)
@@ -579,7 +579,7 @@ const char* pakfire_get_distro_tag(struct pakfire* pakfire) {
 
        // Format string
        r = pakfire_string_format(pakfire->distro.tag, "%s%s", id, version_id);
-       if (r)
+       if (r < 0)
                return NULL;
 
        // Return the tag