projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e83b2a
)
Suppress compiler warning, and not incidentally make the code more
author
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 18 Jul 2008 04:20:24 +0000
(
04:20
+0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 18 Jul 2008 04:20:24 +0000
(
04:20
+0000)
robust. The previous coding was quite risky because it was testing
conditions different from 'is the array really allocated?'.
src/bin/psql/describe.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/describe.c
b/src/bin/psql/describe.c
index 369b6abe33c9ade700292567966a19512f1f9f96..900130d6eb5bd9b79a4768d7850a4a9b62ffe39d 100644
(file)
--- a/
src/bin/psql/describe.c
+++ b/
src/bin/psql/describe.c
@@
-1591,14
+1591,14
@@
error_return:
termPQExpBuffer(&title);
termPQExpBuffer(&tmpbuf);
- if (
tableinfo.relkind == 'S'
)
+ if (
seq_values
)
{
for (ptr = seq_values; *ptr; ptr++)
free(*ptr);
free(seq_values);
}
- if (
show_
modifiers)
+ if (modifiers)
{
for (ptr = modifiers; *ptr; ptr++)
free(*ptr);