diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-02-24 01:38:14 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-02-24 10:29:59 +0100 |
| commit | 7056f6308a2eea4ca84ed311a7932b6d5ed42b53 (patch) | |
| tree | cc31bebeb51ecaea8dceea4f3545ad3a8d3dca6b /Source/Core/Common/Misc.cpp | |
| parent | 84f85475563e2ff03010a00e175c717ad2d274dd (diff) | |
Fix a -Wunused-result warning
Diffstat (limited to 'Source/Core/Common/Misc.cpp')
| -rw-r--r-- | Source/Core/Common/Misc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Misc.cpp b/Source/Core/Common/Misc.cpp index 3a8454a36e..f831479845 100644 --- a/Source/Core/Common/Misc.cpp +++ b/Source/Core/Common/Misc.cpp @@ -30,7 +30,8 @@ const char* GetLastErrorMsg() static __thread char err_str[buff_size] = {}; // Thread safe (XSI-compliant) - strerror_r(errno, err_str, buff_size); + if (strerror_r(errno, err_str, buff_size)) + return nullptr; #endif return err_str; |
