From a15dfe9326e32dc3614d2b5d26c33993f3bf741d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 25 Apr 2026 16:47:48 -0400 Subject: Fix broken allocation error check --- src/lib/core/wheel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/core/wheel.c b/src/lib/core/wheel.c index 9e656ce..c8c75ca 100644 --- a/src/lib/core/wheel.c +++ b/src/lib/core/wheel.c @@ -75,7 +75,7 @@ static ssize_t wheel_parse_wheel(struct Wheel * pkg, const char * data) { } char *value = strdup(lstrip(pair[1])); - if (value) { + if (!value) { SYSERROR("%s", "could not allocate memory for wheel value"); return -1; } -- cgit