summaryrefslogtreecommitdiff
path: root/src/add.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-05-14 08:49:26 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2009-05-14 08:49:26 +0200
commit83840727f067e4e9524fd8aa755b31e93dfaa78e (patch)
treed034672ff6f6f7b71c986946dd8a545096e22529 /src/add.c
parent2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c (diff)
downloadapk-tools-83840727f067e4e9524fd8aa755b31e93dfaa78e.tar.gz
apk-tools-83840727f067e4e9524fd8aa755b31e93dfaa78e.tar.bz2
apk-tools-83840727f067e4e9524fd8aa755b31e93dfaa78e.tar.xz
apk-tools-83840727f067e4e9524fd8aa755b31e93dfaa78e.zip
fix uninitialized variable bug
Diffstat (limited to 'src/add.c')
-rw-r--r--src/add.c2
1 files changed, 1 insertions, 1 deletions
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);