From 614f749ff77c5e9817897ff8166bddd26915a78e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 24 Oct 2000 06:34:45 +0000 Subject: [PATCH] (prepend_default_options): Don't use NULL, for portability. --- lib/prepargs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/prepargs.c b/lib/prepargs.c index 25dd601..d8ca5d0 100644 --- a/lib/prepargs.c +++ b/lib/prepargs.c @@ -40,7 +40,7 @@ /* Find the white-space-separated options specified by OPTIONS, and using BUF to store copies of these options, set ARGV[0], ARGV[1], etc. to the option copies. Return the number N of options found. - Do not set ARGV[N] to NULL. If ARGV is NULL, do not store ARGV[0] + Do not set ARGV[N]. If ARGV is null, do not store ARGV[0] etc. Backslash can be used to escape whitespace (and backslashes). */ static int prepend_args (char const *options, char *buf, char **argv) @@ -77,7 +77,7 @@ prepend_default_options (char const *options, int *pargc, char ***pargv) if (options) { char *buf = xmalloc (strlen (options) + 1); - int prepended = prepend_args (options, buf, (char **) NULL); + int prepended = prepend_args (options, buf, (char **) 0); int argc = *pargc; char * const *argv = *pargv; char **pp = (char **) xmalloc ((prepended + argc + 1) * sizeof *pp); -- 2.44.0