mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Try to fix the false positive with GCC ASAN
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user