dependency: reset parser state on new package atom

resolves minor issue seen here: http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082063.html
pull/48/head
William Pitcock 2013-03-15 19:44:11 -05:00
parent d7643ed2b6
commit 74c33b9f61
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ pkg_dependency_parse_str(pkg_list_t *deplist_head, const char *depends)
pkg_dependency_add(deplist_head, package, package_sz, version, version_sz, compare);
compare = PKG_ANY;
cnameptr = cmpname;
memset(cmpname, 0, sizeof cmpname);
package_sz = 0;
version_sz = 0;
}