Initial the 'err' valaible in opkg_install_by_name , or it may be used without
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Sun, 1 Feb 2009 14:12:41 +0000 (14:12 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Sun, 1 Feb 2009 14:12:41 +0000 (14:12 +0000)
initialize.

git-svn-id: http://opkg.googlecode.com/svn/trunk@199 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_install.c

index 50cdabbcf549b78ad6a90614850e1b452ef54878..a60b75f03d8ecae1ee36504304ebc7f48e7d96d7 100644 (file)
@@ -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;