pkg: path_split(): clarify that we want to dereference parv itself, not parv[idx].
parent
ca4843822f
commit
77703f1841
2
pkg.c
2
pkg.c
|
@ -48,7 +48,7 @@ path_split(const char *text, char ***parv)
|
||||||
iter = workbuf = strdup(text);
|
iter = workbuf = strdup(text);
|
||||||
while ((p = strtok(iter, PKG_CONFIG_PATH_SEP_S)) != NULL)
|
while ((p = strtok(iter, PKG_CONFIG_PATH_SEP_S)) != NULL)
|
||||||
{
|
{
|
||||||
*parv[count] = strdup(p);
|
(*parv)[count] = strdup(p);
|
||||||
count++, iter = NULL;
|
count++, iter = NULL;
|
||||||
|
|
||||||
*parv = realloc(*parv, sizeof (void *) * count);
|
*parv = realloc(*parv, sizeof (void *) * count);
|
||||||
|
|
Loading…
Reference in New Issue