diff options
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ char *apk_blob_cstr(apk_blob_t blob) { char *cstr; - if (blob.ptr == NULL) + if (blob.len == 0) return strdup(""); if (blob.ptr[blob.len-1] == 0) |