Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 48d0db9

Browse files
committed
Fix for copy to stdout for cash.
1 parent ebb000f commit 48d0db9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/utils/adt/cash.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* workings can be found in the book "Software Solutions in C" by
1010
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
1111
*
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.12 1997/09/08 21:48:13 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.13 1997/09/13 04:39:08 momjian Exp $
1313
*/
1414

1515
#include <stdio.h>
@@ -165,8 +165,9 @@ cash_in(const char *str)
165165
* positive-valued amounts. - tgl 97/04/14
166166
*/
167167
const char *
168-
cash_out(Cash *value)
168+
cash_out(Cash *in_value)
169169
{
170+
Cash value = *in_value;
170171
char *result;
171172
char buf[CASH_BUFSZ];
172173
int minus = 0;

0 commit comments

Comments
 (0)