We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c304b9e commit dee753aCopy full SHA for dee753a
src/logging.c
@@ -950,14 +950,11 @@ void rcutils_logging_console_output_handler(
950
}
951
952
if (RCUTILS_RET_OK == status) {
953
- va_list args_clone;
954
- va_copy(args_clone, *args);
955
- status = rcutils_char_array_vsprintf(&msg_array, format, args_clone);
+ status = rcutils_char_array_vsprintf(&msg_array, format, *args);
956
if (RCUTILS_RET_OK != status) {
957
RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(
958
"Error: rcutils_char_array_vsprintf failed with: %d\n", status);
959
960
- va_end(args_clone);
961
962
963
0 commit comments