]> Dogcows Code - chaz/tar/commitdiff
(prepend_default_options): Don't use NULL, for portability.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Oct 2000 06:34:45 +0000 (06:34 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Oct 2000 06:34:45 +0000 (06:34 +0000)
lib/prepargs.c

index 25dd6014fcdca07fe74e91281fb23dfeb051ca0f..d8ca5d0bf36fd46790bf1b4a1cf720448ce39b8f 100644 (file)
@@ -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);
This page took 0.022078 seconds and 4 git commands to generate.