mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-29 12:27:59 +01:00
Fixes a warning in release.
This commit is contained in:
@@ -46,7 +46,7 @@ inline Ch* StrDup(const Ch* str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline void TempFilename(char *filename) {
|
inline void TempFilename(char *filename) {
|
||||||
tmpnam(filename);
|
filename = tmpnam(filename);
|
||||||
|
|
||||||
// For Visual Studio, tmpnam() adds a backslash in front. Remove it.
|
// For Visual Studio, tmpnam() adds a backslash in front. Remove it.
|
||||||
if (filename[0] == '\\')
|
if (filename[0] == '\\')
|
||||||
|
|||||||
Reference in New Issue
Block a user