projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08dd23c
)
psql: Remove useless code
author
Peter Eisentraut
Thu, 8 Mar 2012 21:13:51 +0000
(23:13 +0200)
committer
Peter Eisentraut
Thu, 8 Mar 2012 21:15:03 +0000
(23:15 +0200)
Apparently a copy-and-paste mistake introduced in
8ddd22f2456af0155f9c183894f481203e86b76e
.
found by Coverity
src/bin/psql/print.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/print.c
b/src/bin/psql/print.c
index f7b5e808894c13a13d55f32a679802a103a353cf..72bac51ecb0ff43c1d2cb9909753e70bad5ba2b7 100644
(file)
--- a/
src/bin/psql/print.c
+++ b/
src/bin/psql/print.c
@@
-207,7
+207,7
@@
format_numeric_locale(const char *my_str)
leading_digits;
int groupdigits = atoi(grouping);
int new_str_start = 0;
- char *new_str =
new_str =
pg_local_malloc(
+ char *new_str = pg_local_malloc(
strlen_with_numeric_locale(my_str) + 1);
leading_digits = (int_len % groupdigits != 0) ?