mirror of
https://github.com/boostorg/system.git
synced 2025-11-16 07:29:23 +01:00
Try to fix an order-of-initialisation problem with error_category references.
The symptom, which only occurs in some applications, is a crash due to a dereference of a null pointer. The exact conditions under which the problem occurs are not fully understood, so this fix is probably more paranoid than necessary. [SVN r41100]
This commit is contained in:
@@ -99,7 +99,7 @@ namespace boost
|
||||
namespace linux_error
|
||||
{
|
||||
inline error_code make_error_code( linux_errno e )
|
||||
{ return error_code( e, system_category ); }
|
||||
{ return error_code( e, get_system_category() ); }
|
||||
}
|
||||
|
||||
} // namespace system
|
||||
|
||||
Reference in New Issue
Block a user