From: Aaron Lipinski Date: Tue, 6 Apr 2021 01:23:14 +0000 (+1200) Subject: init structures correctly wired up X-Git-Tag: v0.95~6^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78301a8026500b584b22d27151edc746ccd7b673;p=thirdparty%2Fmtr.git init structures correctly wired up --- diff --git a/ui/mtr.c b/ui/mtr.c index 91773f4..ef567f6 100644 --- a/ui/mtr.c +++ b/ui/mtr.c @@ -766,9 +766,9 @@ int main( int argc, char **argv) { - struct hostent *host = NULL; - struct hostent trhost; char *alptr[2]; + struct hostent trhost; + struct hostent *host = &trhost; names_t *names_head = NULL; names_t *names_walk; @@ -837,7 +837,6 @@ int main( sizeof(ctl.LocalHostname)); } - host = &trhost; if (get_hostent_from_name(&ctl, host, ctl.Hostname, alptr) != 0) { if (ctl.Interactive) exit(EXIT_FAILURE);