Fixes:
authorMarc G. Fournier
Tue, 13 Aug 1996 01:32:26 +0000 (01:32 +0000)
committerMarc G. Fournier
Tue, 13 Aug 1996 01:32:26 +0000 (01:32 +0000)
Here's a small patch that my run-time checker whines about
incessantly.  The justification for the patch is along the
lines of passing a NULL is allowed if you have an
arguement that is a *POINTER* to something, but if
the arguement is an array reference, it's not really
a "pointer", so it can't be NULL.

If you question this, I refer you to


Anyways, here's the patch:

-Kurt

Submitted by: "Kurt J. Lidl" 

src/backend/access/common/heaptuple.c
src/backend/access/heapam.h

index c3e72fb97e8cb92e3a89bf71739435f6a9a6a352..d3cc09fee82f80c304718b06cc6e7b5ce7af9536 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.2 1996/08/13 01:32:26 scrappy Exp $
  *
  * NOTES
  *    The old interface functions have been converted to macros
@@ -114,7 +114,7 @@ DataFill(char *data,
     Datum value[],
     char nulls[],
     char *infomask,
-    bits8 bit[])
+    bits8 *bit)
 {
     bits8  *bitP;
     int        bitmask;
index 9938dbeea7735a0c50b1b5e1a27cb56b2c0c5f6d..e9b864ac12b51bc9307fd9c5baea91379cd231eb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: heapam.h,v 1.1.1.1 1996/07/09 06:21:08 scrappy Exp $
+ * $Id: heapam.h,v 1.2 1996/08/13 01:32:17 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -120,7 +120,7 @@ extern void heap_restrpos(HeapScanDesc sdesc);
 extern Size ComputeDataSize(TupleDesc tupleDesc, Datum value[], char nulls[]);
 extern void DataFill(char *data, TupleDesc tupleDesc,
             Datum value[], char nulls[], char *infomask,
-            bits8 bit[]);
+            bits8 *bit);
 extern int heap_attisnull(HeapTuple tup, int attnum);
 extern int heap_sysattrlen(AttrNumber attno);
 extern bool heap_sysattrbyval(AttrNumber attno);