@matheusbsbs / matheus-bagliano / commits / 1ca3d6ed01
Fork 0

send-email: squelch warning due to comparing undefined $_ to ""

The check to see if initial_reply_to is defined was also comparing $_ to "" for a reason I cannot ascertain (looking at the commit which made the change didn't provide enlightenment), but if $_ is undefined, perl generates a warning. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jay Soffian committed Feb 20, 2008 at 00:55 UTC 1ca3d6ed01774eab37e96d9c88b840ea618f97af
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -406,7 +406,7 @@ if ($thread && !defined $initial_reply_to && $prompting) {
406
407 $initial_reply_to = $_;
408 }
409 -if (defined $initial_reply_to && $_ ne "") {
409 +if (defined $initial_reply_to) {
410 $initial_reply_to =~ s/^\s*<?/</;
411 $initial_reply_to =~ s/>?\s*$/>/;
412 }