summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index 83bcf80..70004e6 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -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)