]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warning.
authorRobert Haas <rhaas@postgresql.org>
Wed, 9 Nov 2011 16:14:50 +0000 (11:14 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 9 Nov 2011 16:14:50 +0000 (11:14 -0500)
src/backend/commands/copy.c

index 7637b689dba300d7f4e313610a74c97e961f3cf0..9c994ef6eb14743a3a66abedc8378bb012fc12db 100644 (file)
@@ -1858,7 +1858,7 @@ CopyFrom(CopyState cstate)
        bool            useHeapMultiInsert;
        int                     nBufferedTuples = 0;
 #define MAX_BUFFERED_TUPLES 1000
-       HeapTuple  *bufferedTuples;
+       HeapTuple  *bufferedTuples = NULL;      /* initialize to silence warning */
        Size            bufferedTuplesSize = 0;
 
        Assert(cstate->rel);