aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-25 16:47:48 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-25 16:47:48 -0400
commita15dfe9326e32dc3614d2b5d26c33993f3bf741d (patch)
tree57f7e82a50efdddb0fe6cb3835b8f14b17f549e9 /src
parentb2e23f78b53091c9db780f2db7eba72b29ac1997 (diff)
downloadstasis-a15dfe9326e32dc3614d2b5d26c33993f3bf741d.tar.gz
Fix broken allocation error check
Diffstat (limited to 'src')
-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;
}