mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 16:01:38 +03:00
Including the final (char *)NULL is the responsibility of the caller
of execl().
This commit is contained in:
@@ -16,7 +16,7 @@ extern int execv ( const char *command, char * const argv[] );
|
|||||||
* This is a front end to execv().
|
* This is a front end to execv().
|
||||||
*/
|
*/
|
||||||
#define execl( command, arg, ... ) ( { \
|
#define execl( command, arg, ... ) ( { \
|
||||||
char * const argv[] = { (arg), ## __VA_ARGS__, NULL }; \
|
char * const argv[] = { (arg), ## __VA_ARGS__ }; \
|
||||||
int rc = execv ( (command), argv ); \
|
int rc = execv ( (command), argv ); \
|
||||||
rc; \
|
rc; \
|
||||||
} )
|
} )
|
||||||
|
|||||||
Reference in New Issue
Block a user