]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-send-email.perl
send-email: clear the $message_id after validation
[thirdparty/git.git] / git-send-email.perl
index 10c450ef68902c7dfcc2289acf72319f38f37346..37dfd4b8c57c47624cf1210c84d8e96ebe80a385 100755 (executable)
@@ -1768,6 +1768,8 @@ sub pre_process_file {
        $subject = $initial_subject;
        $message = "";
        $message_num++;
+       undef $message_id;
+
        # First unfold multiline header fields
        while(<$fh>) {
                last if /^\s*$/;