]> granicus.if.org Git - postgresql/commitdiff
Fix a logic bug in pgindent.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 7 Jan 2013 17:26:27 +0000 (12:26 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 7 Jan 2013 17:26:27 +0000 (12:26 -0500)
src/tools/pgindent/pgindent

index 56e95f48dc8259aacdaa046b61f83eb7bc9e1d69..ce72883fd8c0f365e68c8a65e45ebeec9eeed7bf 100755 (executable)
@@ -37,7 +37,7 @@ run_build($code_base) if ($build);
 # command line option wins, then first non-option arg,
 # then environment (which is how --build sets it) ,
 # then locations. based on current dir, then default location
-$typedefs_file ||= shift if @ARGV && $ARGV[0] !~ /\\.[ch]$/;
+$typedefs_file ||= shift if @ARGV && $ARGV[0] !~ /\.[ch]$/;
 $typedefs_file ||= $ENV{PGTYPEDEFS};
 
 # build mode sets PGINDENT and PGENTAB