[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [githax/master] Fix a conditional assignment: or has a too low precedence for that, use ||



commit ec4ead45c79661d731bed8986033c2e549b1a87b
Author: Peter Palfrader <peter@xxxxxxxxxxxxx>
Date:   Sun Jun 2 09:27:37 2013 +0200

    Fix a conditional assignment: or has a too low precedence for that, use ||
---
 hooks/logs_to_emails.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hooks/logs_to_emails.pl b/hooks/logs_to_emails.pl
index 17fb9ea..7becc35 100755
--- a/hooks/logs_to_emails.pl
+++ b/hooks/logs_to_emails.pl
@@ -32,7 +32,7 @@ my $suggested_use = q[
 
 # Set the environment variable TOTAL_N_COMMITS if you want to get a
 # nice 001/123 header in your commits.
-my $NUM_COMMITS = $ENV{TOTAL_N_COMMITS} or "";
+my $NUM_COMMITS = $ENV{TOTAL_N_COMMITS} || "";
 
 my $waiting_for_commit = 1;
 my $prefix = shift @ARGV;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits