mirror of
https://github.com/nlohmann/json.git
synced 2026-10-15 02:37:13 +00:00
🚑 removed unsafe call to strerror #403
This commit is contained in:
1 parent
e4c2829aea
commit
8381cd6020
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -9077,7 +9077,7 @@ class basic_json
|
||||
// immediately abort if stream is erroneous
|
||||
if (s.fail())
|
||||
{
|
||||
throw std::invalid_argument("stream error: " + std::string(strerror(errno)));
|
||||
throw std::invalid_argument("stream error");
|
||||
}
|
||||
|
||||
// fill buffer
|
||||
|
||||
+1
-1
@@ -9077,7 +9077,7 @@ class basic_json
|
||||
// immediately abort if stream is erroneous
|
||||
if (s.fail())
|
||||
{
|
||||
throw std::invalid_argument("stream error: " + std::string(strerror(errno)));
|
||||
throw std::invalid_argument("stream error");
|
||||
}
|
||||
|
||||
// fill buffer
|
||||
|
||||
Reference in new issue
Block a user