author | Brandon Casey <drafnel@gmail.com> | |
Mon, 27 Sep 2010 03:18:01 +0000 (22:18 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 27 Sep 2010 18:41:45 +0000 (11:41 -0700) | ||
commit | 61ef5e9b56e1c16f6d3c142e2c63f6e2c720c64e | |
tree | 55dcab0ea94f4630e81841217814f482ef362e01 | tree | snapshot |
parent | b822423ed20df158a478c9522373bffb04fa5ecc | commit | diff |
git-send-email.perl: ensure $domain is defined before using it
valid_fqdn() may attempt to operate on an undefined value if
Net::Domain::domainname fails to determine the domain name. This causes
perl to emit unpleasant warnings.
So, add a check for whether $domain has been defined before using it.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
valid_fqdn() may attempt to operate on an undefined value if
Net::Domain::domainname fails to determine the domain name. This causes
perl to emit unpleasant warnings.
So, add a check for whether $domain has been defined before using it.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | diff | blob | history |