summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-02-01 09:12:41 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-02-01 09:12:41 (EST)
commitcfba4480171339c774f2c19358859df7fd0124bd (patch)
tree1925d8064fea4bed7a94343cb5b1cd55aaa0635c /libopkg
parentc94a896bb32dd83de9b08622a295974d3a6e308c (diff)
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
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_install.c2
1 files changed, 1 insertions, 1 deletions
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;