diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-14 08:49:26 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-14 08:49:26 +0200 |
commit | 83840727f067e4e9524fd8aa755b31e93dfaa78e (patch) | |
tree | d034672ff6f6f7b71c986946dd8a545096e22529 /src | |
parent | 2b6e5d6e40a0b8a7ef650ef66996148cfdca1f2c (diff) | |
download | apk-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')
-rw-r--r-- | src/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |