]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-01-19 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Wed, 16 Feb 2005 10:52:52 +0000 (10:52 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 16 Feb 2005 10:52:52 +0000 (10:52 +0000)
[BZ #681]
* sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
argument to execlp.
Reported by Marcus Meissner <meissner@suse.de>.

sunrpc/openchild.c

index 16f6a34e7a36cf2ed98dff6fee9a2d39188c2b69..29ddfa6b75581bfb2e9bfa74e06b94dffbe71073 100644 (file)
@@ -81,7 +81,7 @@ _openchild (const char *command, FILE ** fto, FILE ** ffrom)
       for (i = _rpc_dtablesize () - 1; i >= 3; i--)
        __close (i);
       fflush (stderr);
-      execlp (command, command, 0);
+      execlp (command, command, NULL);
       perror ("exec");
       _exit (~0);