Skip to content

Commit

Permalink
Try to fix the false positive with GCC ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jun 2, 2024
1 parent 38d63aa commit 41ff095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/system/detail/generic_category_message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inline char const * generic_error_category_message( int ev, char * buffer, std::
{
// strerror_r requires non-null buffer pointer

char tmp[ 1 ];
char tmp[ 1 ] = {};
char const* r = strerror_r_helper( strerror_r( ev, tmp, 0 ), buffer );

return r == tmp? nullptr: r;
Expand Down

0 comments on commit 41ff095

Please sign in to comment.