From 74c33b9f614ff67d243f52ad4e662523a85657e5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 15 Mar 2013 19:44:11 -0500 Subject: [PATCH] dependency: reset parser state on new package atom resolves minor issue seen here: http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082063.html --- dependency.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dependency.c b/dependency.c index 2dbdd65..8007f27 100644 --- a/dependency.c +++ b/dependency.c @@ -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; }