Skip to content

Commit 9da9c09

Browse files
committed
Fixes:
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 <URL:http://www.va.pubnix.com/staff/djm/lore/arrays-are-not-pointers> Anyways, here's the patch: -Kurt Submitted by: "Kurt J. Lidl" <lidl@va.pubnix.com>
1 parent 59f2971 commit 9da9c09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/access/common/heaptuple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.2 1996/08/13 01:32:26 scrappy Exp $
1212
*
1313
* NOTES
1414
* The old interface functions have been converted to macros
@@ -114,7 +114,7 @@ DataFill(char *data,
114114
Datum value[],
115115
char nulls[],
116116
char *infomask,
117-
bits8 bit[])
117+
bits8 *bit)
118118
{
119119
bits8 *bitP;
120120
int bitmask;

src/backend/access/heapam.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: heapam.h,v 1.1.1.1 1996/07/09 06:21:08 scrappy Exp $
9+
* $Id: heapam.h,v 1.2 1996/08/13 01:32:17 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -120,7 +120,7 @@ extern void heap_restrpos(HeapScanDesc sdesc);
120120
extern Size ComputeDataSize(TupleDesc tupleDesc, Datum value[], char nulls[]);
121121
extern void DataFill(char *data, TupleDesc tupleDesc,
122122
Datum value[], char nulls[], char *infomask,
123-
bits8 bit[]);
123+
bits8 *bit);
124124
extern int heap_attisnull(HeapTuple tup, int attnum);
125125
extern int heap_sysattrlen(AttrNumber attno);
126126
extern bool heap_sysattrbyval(AttrNumber attno);

0 commit comments

Comments
 (0)