Просмотр исходного кода

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

of execl().
tags/v0.9.3
Michael Brown 19 лет назад
Родитель
Сommit
c343a3a8ee
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      src/include/unistd.h

+ 1
- 1
src/include/unistd.h Просмотреть файл

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

Загрузка…
Отмена
Сохранить