aboutsummaryrefslogtreecommitdiffstats
path: root/lib/argv_split.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/argv_split.c')
-rw-r--r--lib/argv_split.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/argv_split.c b/lib/argv_split.c
index 4096ed42f490..fad6ce4f7b57 100644
--- a/lib/argv_split.c
+++ b/lib/argv_split.c
@@ -75,7 +75,9 @@ char **argv_split(gfp_t gfp, const char *str, int *argcp)
75 if (argv == NULL) 75 if (argv == NULL)
76 goto out; 76 goto out;
77 77
78 *argcp = argc; 78 if (argcp)
79 *argcp = argc;
80
79 argvp = argv; 81 argvp = argv;
80 82
81 while (*str) { 83 while (*str) {