Skip to content

Commit 07c722e

Browse files
authored
Merge pull request #6802 from jsquyres/pr/trivial-gethostname-unification
opal/if/linux_ipv6: unify gethostname() call behavior
2 parents 29468ec + 650dd3e commit 07c722e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/mca/if/linux_ipv6/if_linux_ipv6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static int if_linux_ipv6_open(void)
127127
opal_if_t *intf;
128128

129129
if (!hexdecode(addrhex, a6.s6_addr, sizeof a6.s6_addr)) {
130-
char hostname[OPAL_MAXHOSTNAMELEN] = {0};
130+
char hostname[OPAL_MAXHOSTNAMELEN];
131131
gethostname(hostname, sizeof(hostname));
132132
opal_show_help("help-opal-if-linux-ipv6.txt",
133133
"fail to parse if_inet6", true,

0 commit comments

Comments
 (0)