Skip to content

Commit 528710b

Browse files
Changed declarations to better C++ init
1 parent b5f00a0 commit 528710b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang-rt/lib/runtime/extensions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ int FORTRAN_PROCEDURE_NAME(hostnm)(char *hn, int length) {
288288
if (status == 0) {
289289
// Find zero terminator and fill the string from the
290290
// zero terminator to the end with spaces
291-
char *str_end = hn + length;
292-
char *str_zero = std::find(hn, str_end, '\0');
291+
char *str_end{hn + length};
292+
char *str_zero{std::find(hn, str_end, '\0')};
293293
std::fill(str_zero, str_end, ' ');
294294
}
295295

0 commit comments

Comments
 (0)