mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
cppcheck - minor problems fixed (#13609)
This commit is contained in:
parent
a000913ed4
commit
4640a5da96
7 changed files with 12 additions and 9 deletions
|
@ -453,6 +453,7 @@ static void cliPrintError(const char *cmdName, const char *format, ...)
|
|||
va_list va;
|
||||
va_start(va, format);
|
||||
cliPrintErrorVa(cmdName, format, va);
|
||||
va_end(va);
|
||||
|
||||
if (!cliWriter) {
|
||||
// Supply our own linefeed in case we are printing inside a custom defaults operation
|
||||
|
@ -467,6 +468,7 @@ static void cliPrintErrorLinef(const char *cmdName, const char *format, ...)
|
|||
va_list va;
|
||||
va_start(va, format);
|
||||
cliPrintErrorVa(cmdName, format, va);
|
||||
va_end(va);
|
||||
cliPrintInternal(cliErrorWriter, "\r\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue