diff --git a/source/shared_lib/sources/map/map_preview.cpp b/source/shared_lib/sources/map/map_preview.cpp index f2169d993..bb2c7851a 100644 --- a/source/shared_lib/sources/map/map_preview.cpp +++ b/source/shared_lib/sources/map/map_preview.cpp @@ -717,7 +717,7 @@ void MapPreview::loadFromFile(const string &path) { #else FILE *f1 = fopen(path.c_str(), "rb"); #endif - //int fileErrno = errno; + int fileErrno = errno; if (f1 != NULL) { //read header diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp index 7614a3541..3bedc945f 100644 --- a/source/shared_lib/sources/platform/posix/socket.cpp +++ b/source/shared_lib/sources/platform/posix/socket.cpp @@ -591,7 +591,7 @@ string getNetworkInterfaceBroadcastAddress(string ipAddress) next = next->Next; } } - //char buf[128]; + char buf[128]=""; if (name == NULL) { //sprintf(buf, "unnamed-%i", i); diff --git a/source/shared_lib/sources/util/util.cpp b/source/shared_lib/sources/util/util.cpp index ec11afee8..d7e1a65d9 100644 --- a/source/shared_lib/sources/util/util.cpp +++ b/source/shared_lib/sources/util/util.cpp @@ -741,6 +741,7 @@ bool fileExists(const string &path) { else { //int fileErrno = errno; #ifdef WIN32 + int fileErrno = errno; DWORD error = GetLastError(); string strError = "Could not open file, result: " + intToStr(error) + " - " + intToStr(fileErrno) + " " + strerror(fileErrno) + " [" + path + "]"; #endif