Fix uninitialized vars in deplist parsing.

feature/tap-sh
Michał Górny 2012-05-02 11:38:54 +02:00
parent 353ba1eafe
commit 742fad9251
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ parse_deplist(pkg_t *pkg, const char *depends)
char *start = buf; char *start = buf;
char *ptr = buf; char *ptr = buf;
char *vstart = NULL; char *vstart = NULL;
char *package, *version; char *package = NULL, *version = NULL;
strlcpy(buf, kvdepends, sizeof buf); strlcpy(buf, kvdepends, sizeof buf);
strlcat(buf, " ", sizeof buf); strlcat(buf, " ", sizeof buf);