mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-01 19:45:33 +08:00
Fix platform-dependent failure introduced by recent to_char changes
(ye good olde uninitialized-local-variable).
This commit is contained in:
parent
1d650da2e5
commit
d6f1aa9760
@ -1,7 +1,7 @@
|
||||
/* -----------------------------------------------------------------------
|
||||
* formatting.c
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.62 2003/03/27 17:10:55 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.63 2003/04/02 02:33:52 tgl Exp $
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1999-2002, PostgreSQL Global Development Group
|
||||
@ -3844,6 +3844,8 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
|
||||
NUMProc _Np,
|
||||
*Np = &_Np;
|
||||
|
||||
MemSet(Np, 0, sizeof(NUMProc));
|
||||
|
||||
Np->Num = Num;
|
||||
Np->type = type;
|
||||
Np->number = number;
|
||||
@ -3891,7 +3893,9 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
|
||||
if (IS_PLUS(Np->Num) || IS_MINUS(Np->Num))
|
||||
{
|
||||
if (IS_PLUS(Np->Num) && IS_MINUS(Np->Num)==FALSE)
|
||||
Np->sign_wrote = FALSE;
|
||||
Np->sign_wrote = FALSE; /* need sign */
|
||||
else
|
||||
Np->sign_wrote = TRUE; /* needn't sign */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user