From 77703f1841ac84258e62807a2e6bcb83fb06e9bd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 2 May 2012 19:31:30 +0000 Subject: [PATCH] pkg: path_split(): clarify that we want to dereference parv itself, not parv[idx]. --- pkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg.c b/pkg.c index fa8716b..508a2ed 100644 --- a/pkg.c +++ b/pkg.c @@ -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);