diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-02-24 05:35:49 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-02-24 05:35:49 -0600 |
| commit | 4e5d115bf0fcff7e78b93868adb38a6726b1ee3e (patch) | |
| tree | db741759275817ac4e67b8566568aaf39cb0e799 /Source/Core/Common/Misc.cpp | |
| parent | be6a151355a8a29f59a9304dda6324b1552d7636 (diff) | |
| parent | e67145713c0eacb46e5355543740dd3df2535a88 (diff) | |
Merge pull request #2114 from Tilka/fix_warnings
Fix some warnings
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; |
