From cfba4480171339c774f2c19358859df7fd0124bd Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sun, 1 Feb 2009 14:12:41 +0000 Subject: [PATCH] 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 --- libopkg/opkg_install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1