mbed_error: remove redundant memset

If we want zero-fill, strncpy does it anyway.
pull/8441/head
Kevin Bracey 2018-10-16 13:05:59 +03:00
parent c2076b5ec4
commit 25d0fbaaeb
1 changed files with 0 additions and 1 deletions

View File

@ -122,7 +122,6 @@ static mbed_error_status_t handle_error(mbed_error_status_t error_status, unsign
#if MBED_CONF_PLATFORM_ERROR_FILENAME_CAPTURE_ENABLED
//Capture filename/linenumber if provided
//Index for tracking error_filename
memset(&current_error_ctx.error_filename, 0, MBED_CONF_PLATFORM_MAX_ERROR_FILENAME_LEN);
strncpy(current_error_ctx.error_filename, filename, MBED_CONF_PLATFORM_MAX_ERROR_FILENAME_LEN);
current_error_ctx.error_line_number = line_number;
#endif