From 83840727f067e4e9524fd8aa755b31e93dfaa78e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 14 May 2009 08:49:26 +0200 Subject: [PATCH] fix uninitialized variable bug --- src/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add.c b/src/add.c index 5e7e95f..cf518af 100644 --- a/src/add.c +++ b/src/add.c @@ -41,7 +41,7 @@ static int add_main(void *ctx, int argc, char **argv) struct add_ctx *actx = (struct add_ctx *) ctx; struct apk_database db; struct apk_state *state = NULL; - struct apk_dependency_array *pkgs; /* list of pkgs to install */ + struct apk_dependency_array *pkgs = NULL; /* list of pkgs to install */ int i, r; r = apk_db_open(&db, apk_root, actx->open_flags | APK_OPENF_WRITE);