dependency: reset parser state on new package atom
resolves minor issue seen here: http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082063.htmlpull/48/head
parent
d7643ed2b6
commit
74c33b9f61
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue