File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 6
6
* Copyright (c) 2007-2008, PostgreSQL Global Development Group
7
7
*
8
8
* IDENTIFICATION
9
- * $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.8 2008/11/03 22:14:40 petere Exp $
9
+ * $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.9 2008/11/03 23:49:07 tgl Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -83,12 +83,13 @@ static void
83
83
string_to_uuid (const char * source , pg_uuid_t * uuid )
84
84
{
85
85
const char * src = source ;
86
- int i , braces = 0 ;
86
+ bool braces = false;
87
+ int i ;
87
88
88
89
if (src [0 ] == '{' )
89
90
{
90
- ++ src ;
91
- braces = 1 ;
91
+ src ++ ;
92
+ braces = true ;
92
93
}
93
94
94
95
for (i = 0 ; i < UUID_LEN ; i ++ )
@@ -111,9 +112,9 @@ string_to_uuid(const char *source, pg_uuid_t *uuid)
111
112
112
113
if (braces )
113
114
{
114
- if (* src != '}' )
115
+ if (* src != '}' )
115
116
goto syntax_error ;
116
- ++ src ;
117
+ src ++ ;
117
118
}
118
119
119
120
if (* src != '\0' )
You can’t perform that action at this time.
0 commit comments