mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 15:17:47 +00:00
[cli-uart] fix va_end may not be called for va_copy (#7079)
This commit is contained in:
@@ -343,9 +343,9 @@ static int CliUartOutput(void *aContext, const char *aFormat, va_list aArguments
|
||||
}
|
||||
else
|
||||
{
|
||||
// Flush did not succeed, so abort here.
|
||||
// Flush did not succeed, so abandon buffered output.
|
||||
otLogWarnPlat("Failed to output CLI: %s", otThreadErrorToString(error));
|
||||
ExitNow();
|
||||
break;
|
||||
}
|
||||
}
|
||||
rval = vsnprintf(sTxBuffer, kTxBufferSize, aFormat, retryArguments);
|
||||
|
||||
Reference in New Issue
Block a user