From 79192d39248d604f034ee8749e7724ead8618828 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 29 Oct 1996 20:27:43 +0000 Subject: Don't display canonical name if it hasn't been grabbed. svn path=/trunk/; revision=427 --- fetchmail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index bf64ed0a..2558f0b9 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -660,7 +660,8 @@ struct query *ctl; /* query parameter block */ printf("Options for retrieving from %s@%s:\n", ctl->remotename, visbuf(ctl->servername)); #ifdef HAVE_GETHOSTBYNAME - printf(" Canonical DNS name of server is %s.\n", ctl->canonical_name); + if (ctl->canonical_name) + printf(" Canonical DNS name of server is %s.\n", ctl->canonical_name); #endif /* HAVE_GETHOSTBYNAME */ if (ctl->skip || outlevel == O_VERBOSE) printf(" This host will%s be queried when no host is specified.\n", -- cgit v1.2.3