X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fargv_split.c;h=5205a8dae5bc08c51a4f0f283dd812e2fab25a04;hb=9ca59f4c3d28df14a1545a1e2832f34a0a50e3ed;hp=4096ed42f490869c252b1e33ea76050fe8f1ec92;hpb=8269cc4e2b0ddcdcb9e7f2034c464ef8613737a1;p=linux-2.6-omap-h63xx.git diff --git a/lib/argv_split.c b/lib/argv_split.c index 4096ed42f49..5205a8dae5b 100644 --- a/lib/argv_split.c +++ b/lib/argv_split.c @@ -4,7 +4,8 @@ #include #include -#include +#include +#include static const char *skip_sep(const char *cp) { @@ -75,7 +76,9 @@ char **argv_split(gfp_t gfp, const char *str, int *argcp) if (argv == NULL) goto out; - *argcp = argc; + if (argcp) + *argcp = argc; + argvp = argv; while (*str) {