Skip to content

Commit 5770935

Browse files
committed
Fix oid8in and int28in for spaces
1 parent a040281 commit 5770935

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/backend/utils/adt/int.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.28 2000/01/10 05:20:23 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.29 2000/01/10 05:23:47 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -90,8 +90,9 @@ int28in(char *intString)
9090
{
9191
if (sscanf(intString, "%hd", &result[slot]) != 1)
9292
break;
93-
while (*intString && *intString != ' ')
93+
do
9494
intString++;
95+
while (*intString && *intString != ' ')
9596
}
9697
while (slot < INDEX_MAX_KEYS)
9798
result[slot++] = 0;

src/backend/utils/adt/oid.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.29 2000/01/10 04:36:34 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.30 2000/01/10 05:23:47 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -41,8 +41,9 @@ oid8in(char *oidString)
4141
{
4242
if (sscanf(oidString, "%u", &result[slot]) != 1)
4343
break;
44-
while (*oidString && *oidString != ' ')
44+
do
4545
oidString++;
46+
while (*oidString && *oidString != ' ')
4647
}
4748
while (slot < INDEX_MAX_KEYS)
4849
result[slot++] = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy