pkg: path_split(): clarify that we want to dereference parv itself, not parv[idx].

feature/tap-sh
William Pitcock 2012-05-02 19:31:30 +00:00
parent ca4843822f
commit 77703f1841
1 changed files with 1 additions and 1 deletions

2
pkg.c
View File

@ -48,7 +48,7 @@ path_split(const char *text, char ***parv)
iter = workbuf = strdup(text);
while ((p = strtok(iter, PKG_CONFIG_PATH_SEP_S)) != NULL)
{
*parv[count] = strdup(p);
(*parv)[count] = strdup(p);
count++, iter = NULL;
*parv = realloc(*parv, sizeof (void *) * count);