diff options
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index b17d261987..1c6d2cc787 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -412,7 +412,7 @@ sub send_message } my ($author_name) = ($from =~ /^(.*?)\s+</); - if ($author_name =~ /\./ && $author_name !~ /^".*"$/) { + if ($author_name && $author_name =~ /\./ && $author_name !~ /^".*"$/) { my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/); $from = "\"$name\"$addr"; } |