From 5358bfdc98a47d26649ae094dab88842a0603968 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 30 Apr 2014 11:15:15 -0400 Subject: [PATCH] Fix uninitialized-variable warnings induced by recent commit. --- src/bin/psql/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index c9c041f7243..08fe907d8d1 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -1266,7 +1266,7 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout) swidth = 1; /* "header data" */ else if (opt_border == 1) swidth = 3; /* "header | data" */ - else if (opt_border > 1) + else swidth = 7; /* "| header | data |" */ /* Wrap to maximum width */ @@ -1285,7 +1285,7 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout) delta += 6; /* "* RECORD " */ else if (opt_border == 1) delta += 10; /* "-[ RECORD ]" */ - else if (opt_border == 2) + else delta += 15; /* "+-[ RECORD ]-+" */ if (delta > 0) -- 2.39.5