Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6f1aa9

Browse files
committed
Fix platform-dependent failure introduced by recent to_char changes
(ye good olde uninitialized-local-variable).
1 parent1d650da commitd6f1aa9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/utils/adt/formatting.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.62 2003/03/27 17:10:55 momjian Exp $
4+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.63 2003/04/02 02:33:52 tgl Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2002, PostgreSQL Global Development Group
@@ -3844,6 +3844,8 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
38443844
NUMProc_Np,
38453845
*Np=&_Np;
38463846

3847+
MemSet(Np,0,sizeof(NUMProc));
3848+
38473849
Np->Num=Num;
38483850
Np->type=type;
38493851
Np->number=number;
@@ -3891,7 +3893,9 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
38913893
if (IS_PLUS(Np->Num)||IS_MINUS(Np->Num))
38923894
{
38933895
if (IS_PLUS(Np->Num)&&IS_MINUS(Np->Num)==FALSE)
3894-
Np->sign_wrote= FALSE;
3896+
Np->sign_wrote= FALSE;/* need sign */
3897+
else
3898+
Np->sign_wrote= TRUE;/* needn't sign */
38953899
}
38963900
else
38973901
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp