diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-09-14 11:07:45 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-09-14 11:07:45 +0300 |
commit | f95e7e585087aa6677978205f4ae8ebb9dfd1851 (patch) | |
tree | f67a75eb5206176a5cde1e897f8dd899fa64a492 /src/apk.c | |
parent | f51aa6d42d0dc53ac58c6d5bce23ddc464051f91 (diff) | |
download | apk-tools-f95e7e585087aa6677978205f4ae8ebb9dfd1851.tar.gz apk-tools-f95e7e585087aa6677978205f4ae8ebb9dfd1851.tar.bz2 apk-tools-f95e7e585087aa6677978205f4ae8ebb9dfd1851.tar.xz apk-tools-f95e7e585087aa6677978205f4ae8ebb9dfd1851.zip |
upgrade: --no-self-upgrade option
Use it to avoid self-upgrade loops in case something fails during
the initial upgrade attempt.
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -272,9 +272,10 @@ int main(int argc, char **argv) struct apk_database db; struct apk_db_options dbopts; - apk_argv = malloc(sizeof(char*[argc+1])); + apk_argv = malloc(sizeof(char*[argc+2])); memcpy(apk_argv, argv, sizeof(char*[argc])); apk_argv[argc] = NULL; + apk_argv[argc+1] = NULL; memset(&dbopts, 0, sizeof(dbopts)); list_init(&dbopts.repository_list); |