|
11 | 11 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group |
12 | 12 | * Portions Copyright (c) 1994, Regents of the University of California |
13 | 13 | * |
14 | | - * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.35 2007/06/12 13:54:58 mha Exp $ |
| 14 | + * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.36 2007/07/18 21:19:17 alvherre Exp $ |
15 | 15 | * |
16 | 16 | *------------------------------------------------------------------------- |
17 | 17 | */ |
@@ -911,7 +911,7 @@ spawn_process(const char *cmdline) |
911 | 911 | char*cmdline2=malloc(strlen(cmdline)+6); |
912 | 912 |
|
913 | 913 | sprintf(cmdline2,"exec %s",cmdline); |
914 | | -execl(shellprog,shellprog,"-c",cmdline2,NULL); |
| 914 | +execl(shellprog,shellprog,"-c",cmdline2,(char*)NULL); |
915 | 915 | fprintf(stderr,_("%s: could not exec \"%s\": %s\n"), |
916 | 916 | progname,shellprog,strerror(errno)); |
917 | 917 | exit(1);/* not exit_nicely here... */ |
|