aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-01-07 12:26:27 -0500
committerAndrew Dunstan <andrew@dunslane.net>2013-01-07 12:26:27 -0500
commit74570db99c5fc1071762c12e220de2e65593368f (patch)
treeb9065650e64e7737c1c72c67e888f4f35b5bf6d8
parenta0dc23f2058b3b2a3ab8c131914aba40f96db19f (diff)
downloadpostgresql-74570db99c5fc1071762c12e220de2e65593368f.tar.gz
postgresql-74570db99c5fc1071762c12e220de2e65593368f.zip
Fix a logic bug in pgindent.
-rwxr-xr-xsrc/tools/pgindent/pgindent2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent
index 56e95f48dc8..ce72883fd8c 100755
--- a/src/tools/pgindent/pgindent
+++ b/src/tools/pgindent/pgindent
@@ -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