Skip to content

Commit

Permalink
Merge pull request #32 from char101/patch-1
Browse files Browse the repository at this point in the history
Add missing parameter when running config|fetch
  • Loading branch information
steveschnepp committed Jun 6, 2016
2 parents d6731a5 + d71175d commit cc3e69b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/node.c
Expand Up @@ -551,7 +551,7 @@ static int handle_connection() {
strcmp(cmd, "fetch") == 0
) {
char cmdline[LINE_MAX];
char *argv[2] = { 0, };
char *argv[3] = { 0, };
pid_t pid;
if(arg == NULL) {
printf("# no plugin given\n");
Expand All @@ -573,6 +573,7 @@ static int handle_connection() {
/* Now is the time to set environnement */
setenvvars_conf(arg);
argv[0] = arg;
argv[1] = cmd;

/* Using posix_spawnp() here instead of fork() since we will
* do a little more than a mere exec --> setenvvars_conf() */
Expand Down

0 comments on commit cc3e69b

Please sign in to comment.