forked from ariadne/pkgconf
Fix uninitialized vars in deplist parsing.
parent
353ba1eafe
commit
742fad9251
2
parse.c
2
parse.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue