We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 591166b commit 1db1f16Copy full SHA for 1db1f16
1 file changed
src/logging.c
@@ -1311,14 +1311,11 @@ void rcutils_logging_console_output_handler(
1311
}
1312
1313
if (RCUTILS_RET_OK == status) {
1314
- va_list args_clone;
1315
- va_copy(args_clone, *args);
1316
- status = rcutils_char_array_vsprintf(&msg_array, format, args_clone);
+ status = rcutils_char_array_vsprintf(&msg_array, format, *args);
1317
if (RCUTILS_RET_OK != status) {
1318
RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(
1319
"Error: rcutils_char_array_vsprintf failed with: %d\n", status);
1320
1321
- va_end(args_clone);
1322
1323
1324
0 commit comments