8000 Fixed a botched patch... · home201448/postgres@0022dea · GitHub
[go: up one dir, main page]

Skip to content

Commit 0022dea

Browse files
committed
Fixed a botched patch...
Pointed out by Andrew...
1 parent 20d44ee commit 0022dea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/commands/copy.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.2.2.3 1996/10/28 22:09:30 scrappy Exp $
9+
* $Header: /cvsroot/pgsq B427 l/src/backend/commands/copy.c,v 1.2.2.4 1996/10/29 19:03:48 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -733,7 +733,8 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
733733
char c;
734734
int done = 0;
735735
int i = 0;
736-
736+
737+
*isnull = (bool) false; /* set default */
737738
if (feof(fp))
738739
return(NULL);
739740

@@ -742,7 +743,7 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
742743

743744
if (feof(fp))
744745
return(NULL);
745-
}else if (c == '\\') {
746+
else if (c == '\\') {
746747
c = getc(fp);
747748
#ifdef ESCAPE_PATCH
748749
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))

0 commit comments

Comments
 (0)
0