]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fixed a botched patch...
authorMarc G. Fournier <scrappy@hub.org>
Tue, 29 Oct 1996 19:03:48 +0000 (19:03 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Tue, 29 Oct 1996 19:03:48 +0000 (19:03 +0000)
Pointed out by Andrew...

src/backend/commands/copy.c

index a3487b48099de5946380ff4808beaa0f11a6affb..ecaae4805c5d562e797eaa8ce9189ad8e96016e9 100644 (file)
@@ -6,7 +6,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.2.2.3 1996/10/28 22:09:30 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.2.2.4 1996/10/29 19:03:48 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -733,7 +733,8 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
     char c;
     int done = 0;
     int i = 0;
-    
+   
+    *isnull = (bool) false;   /* set default */
     if (feof(fp)) 
        return(NULL);
     
@@ -742,7 +743,7 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
            
        if (feof(fp)) 
            return(NULL);
-       }else if (c == '\\') {
+       else if (c == '\\') {
            c = getc(fp);
 #ifdef ESCAPE_PATCH
 #define ISOCTAL(c)    (((c) >= '0') && ((c) <= '7'))