mirror of
https://github.com/espressif/openthread.git
synced 2026-09-01 23:09:53 +00:00
[posix-app] fix missing sentinel in execl() (#4007)
This commit fixes a build error on OpenWRT. Error: missing sentinel in function execl.
This commit is contained in:
@@ -499,7 +499,8 @@ int HdlcInterface::ForkPty(const char *aCommand, const char *aArguments)
|
||||
fprintf(stderr, "NCP file and configuration is too long!");
|
||||
rval = -1);
|
||||
|
||||
VerifyOrExit((rval = execl(SOCKET_UTILS_DEFAULT_SHELL, SOCKET_UTILS_DEFAULT_SHELL, "-c", cmd, NULL)) != -1,
|
||||
VerifyOrExit((rval = execl(SOCKET_UTILS_DEFAULT_SHELL, SOCKET_UTILS_DEFAULT_SHELL, "-c", cmd,
|
||||
static_cast<char *>(NULL))) != -1,
|
||||
perror("execl(OT_RCP)"));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user