default:
break;
}
- globopts = GLOB_APPEND;
free(globstr);
}
struct pkgloc *find_package(char *pkgstr, struct search_ctl *opt) {
char *latest = 0;
char *installed = 0, *found = 0;
- char *pkgfile;
+ char *pkgfile = 0;
struct pkgloc *pkg = 0;
int rv;
unsigned int i;
}
/* shouldn't be in there already */
jsw_hinsert(forlibs, pkginfo.id, pkginfo.file);
- }
- /* otherwise found == 2, so just continue */
- if (found) {
free(pkginfo.file);
free(pkginfo.id);
- }
+ }
+ /* otherwise found == 2, so just continue */
}
}
free(pkgid);