Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9da9c09

Browse files
committed
Fixes:
Here's a small patch that my run-time checker whines aboutincessantly. The justification for the patch is along thelines of passing a NULL is allowed if you have anarguement that is a *POINTER* to something, but ifthe arguement is an array reference, it's not reallya "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:-KurtSubmitted by: "Kurt J. Lidl" <lidl@va.pubnix.com>
1 parent59f2971 commit9da9c09

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
Datumvalue[],
115115
charnulls[],
116116
char*infomask,
117-
bits8bit[])
117+
bits8*bit)
118118
{
119119
bits8*bitP;
120120
intbitmask;

‎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
externSizeComputeDataSize(TupleDesctupleDesc,Datumvalue[],charnulls[]);
121121
externvoidDataFill(char*data,TupleDesctupleDesc,
122122
Datumvalue[],charnulls[],char*infomask,
123-
bits8bit[]);
123+
bits8*bit);
124124
externintheap_attisnull(HeapTupletup,intattnum);
125125
externintheap_sysattrlen(AttrNumberattno);
126126
externboolheap_sysattrbyval(AttrNumberattno);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp