diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-25 16:47:48 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-25 16:47:48 -0400 |
| commit | a15dfe9326e32dc3614d2b5d26c33993f3bf741d (patch) | |
| tree | 57f7e82a50efdddb0fe6cb3835b8f14b17f549e9 | |
| parent | b2e23f78b53091c9db780f2db7eba72b29ac1997 (diff) | |
| download | stasis-a15dfe9326e32dc3614d2b5d26c33993f3bf741d.tar.gz | |
Fix broken allocation error check
| -rw-r--r-- | src/lib/core/wheel.c | 2 |
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; } |
