From: ticktock35 Date: Sun, 1 Feb 2009 14:12:41 +0000 (+0000) Subject: Initial the 'err' valaible in opkg_install_by_name , or it may be used without X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=cfba4480171339c774f2c19358859df7fd0124bd Initial the 'err' valaible in opkg_install_by_name , or it may be used without initialize. git-svn-id: http://opkg.googlecode.com/svn/trunk@199 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 50cdabb..a60b75f 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -138,7 +138,7 @@ int opkg_install_from_file(opkg_conf_t *conf, const char *filename) opkg_error_t opkg_install_by_name(opkg_conf_t *conf, const char *pkg_name) { - int cmp, err; + int cmp, err = 0; pkg_t *old, *new; char *old_version, *new_version;