We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8997af8 commit bad673aCopy full SHA for bad673a
flang/runtime/extensions.cpp
@@ -29,7 +29,7 @@
29
#define LOGIN_NAME_MAX UNLEN
30
31
inline int getlogin_r(char *buf, size_t bufSize) {
32
- wchar_t w_username[UNLEN + 1] = {};
+ wchar_t w_username[UNLEN + 1];
33
DWORD nameLen{UNLEN + 1};
34
35
if (GetUserName(w_username, &nameLen)) {
@@ -82,7 +82,7 @@ void FORTRAN_PROCEDURE_NAME(getarg)(
82
}
83
84
void FORTRAN_PROCEDURE_NAME(getlog)(std::int8_t *arg, std::int64_t length) {
85
- std::array<char, LOGIN_NAME_MAX + 1> str = {};
+ std::array<char, LOGIN_NAME_MAX + 1> str;
86
87
int error{getlogin_r(str.data(), str.size())};
88
Terminator terminator{__FILE__, __LINE__};
0 commit comments