Quellcode durchsuchen

Including the final (char *)NULL is the responsibility of the caller

of execl().
tags/v0.9.3
Michael Brown vor 17 Jahren
Ursprung
Commit
c343a3a8ee
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/include/unistd.h

+ 1
- 1
src/include/unistd.h Datei anzeigen

@@ -16,7 +16,7 @@ extern int execv ( const char *command, char * const argv[] );
16 16
  * This is a front end to execv().
17 17
  */
18 18
 #define execl( command, arg, ... ) ( {					\
19
-		char * const argv[] = { (arg), ## __VA_ARGS__, NULL };	\
19
+		char * const argv[] = { (arg), ## __VA_ARGS__ };	\
20 20
 		int rc = execv ( (command), argv );			\
21 21
 		rc;							\
22 22
 	} )

Laden…
Abbrechen
Speichern