aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/fix-lua-apk.patch
blob: 0c13e815b854cd46cb594f9a8a701766c0a4d11e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/lua-apk.c b/src/lua-apk.c
index 6fbd1cf..45488c2 100644
--- a/src/lua-apk.c
+++ b/src/lua-apk.c
@@ -208,7 +208,7 @@ static int Papk_exists(lua_State *L)
 	apk_blob_t blob = APK_BLOB_STR(depstr);
 	apk_blob_pull_dep(&blob, db, &dep);
 
-	if (APK_BLOB_IS_NULL(blob) || b.len > 0)
+	if (APK_BLOB_IS_NULL(blob) || blob.len > 0)
 		goto ret_nil;
 
 	name = dep.name;