Thu Mar 8 20:50:55 2012 UTC ()
prefer NULL over 0


(christos)
diff -r1.1.1.1 -r1.2 src/external/gpl2/xcvs/dist/diff/util.c

cvs diff -r1.1.1.1 -r1.2 src/external/gpl2/xcvs/dist/diff/util.c (expand / switch to unified diff)

--- src/external/gpl2/xcvs/dist/diff/util.c 2009/04/07 22:10:11 1.1.1.1
+++ src/external/gpl2/xcvs/dist/diff/util.c 2012/03/08 20:50:55 1.2
@@ -225,27 +225,27 @@ begin_output () @@ -225,27 +225,27 @@ begin_output ()
225 if (pr_pid < 0) 225 if (pr_pid < 0)
226 pfatal_with_name ("vfork"); 226 pfatal_with_name ("vfork");
227 227
228 if (pr_pid == 0) 228 if (pr_pid == 0)
229 { 229 {
230 close (pipes[1]); 230 close (pipes[1]);
231 if (pipes[0] != STDIN_FILENO) 231 if (pipes[0] != STDIN_FILENO)
232 { 232 {
233 if (dup2 (pipes[0], STDIN_FILENO) < 0) 233 if (dup2 (pipes[0], STDIN_FILENO) < 0)
234 pfatal_with_name ("dup2"); 234 pfatal_with_name ("dup2");
235 close (pipes[0]); 235 close (pipes[0]);
236 } 236 }
237 237
238 execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, 0); 238 execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, NULL);
239 pfatal_with_name (PR_PROGRAM); 239 pfatal_with_name (PR_PROGRAM);
240 } 240 }
241 else 241 else
242 { 242 {
243 close (pipes[0]); 243 close (pipes[0]);
244 outfile = fdopen (pipes[1], "w"); 244 outfile = fdopen (pipes[1], "w");
245 if (!outfile) 245 if (!outfile)
246 pfatal_with_name ("fdopen"); 246 pfatal_with_name ("fdopen");
247 } 247 }
248# else /* ! HAVE_FORK */ 248# else /* ! HAVE_FORK */
249 char *command = xmalloc (4 * strlen (name) + strlen (PR_PROGRAM) + 10); 249 char *command = xmalloc (4 * strlen (name) + strlen (PR_PROGRAM) + 10);
250 char *p; 250 char *p;
251 char const *a = name; 251 char const *a = name;