From c1c9abbfcafe8e55d86dfe13aed6874ad194d761 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:45:14 +0100 Subject: Change iritating NULL assignment --- plugins/runcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/runcmd.c') diff --git a/plugins/runcmd.c b/plugins/runcmd.c index 32fd6b96..ed49bb99 100644 --- a/plugins/runcmd.c +++ b/plugins/runcmd.c @@ -115,7 +115,7 @@ np_runcmd_open(const char *cmdstring, int *pfd, int *pfderr) if(!np_pids) NP_RUNCMD_INIT; env[0] = strdup("LC_ALL=C"); - env[1] = '\0'; + env[1] = NULL; /* make copy of command string so strtok() doesn't silently modify it */ /* (the calling program may want to access it later) */ -- cgit v1.2.3-74-g34f1