Skip to content

Commit eb11166

Browse files
author
Alexander Korotkov
committed
Fix compiler warnings.
1 parent 61a4cc6 commit eb11166

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/pg_pathman/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void
275275
load_check_constraints(Oid parent_oid, Snapshot snapshot)
276276
{
277277
PartRelationInfo *prel;
278-
RangeRelation *rangerel;
278+
RangeRelation *rangerel = NULL;
279279
SPIPlanPtr plan;
280280
bool found;
281281
int ret,
@@ -306,7 +306,7 @@ load_check_constraints(Oid parent_oid, Snapshot snapshot)
306306
{
307307
SPITupleTable *tuptable = SPI_tuptable;
308308
Oid *children;
309-
RangeEntry *ranges;
309+
RangeEntry *ranges = NULL;
310310
Datum min;
311311
Datum max;
312312
int hash;

contrib/pg_pathman/rangeset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ irange_list_union(List *a, List *b)
7474
ListCell *ca,
7575
*cb;
7676
List *result = NIL;
77-
IndexRange cur;
77+
IndexRange cur = 0;
7878
bool have_cur = false;
7979

8080
ca = list_head(a);

0 commit comments

Comments
 (0)