aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/core/wheel.c2
1 files changed, 1 insertions, 1 deletions
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;
}