summaryrefslogtreecommitdiff
path: root/src/apk_adb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_adb.c')
-rw-r--r--src/apk_adb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_adb.c b/src/apk_adb.c
index 2827733..0e08848 100644
--- a/src/apk_adb.c
+++ b/src/apk_adb.c
@@ -160,7 +160,7 @@ static adb_val_t int_fromstring(struct adb *db, apk_blob_t val)
{
uint32_t n = apk_blob_pull_uint(&val, 10);
if (val.len) return ADB_ERROR(EINVAL);
- return adb_w_int(db, n);
+ return adb_w_int(db, n) ?: ADB_VAL_NULL;
}
static int int_compare(struct adb *db1, adb_val_t v1, struct adb *db2, adb_val_t v2)