Skip to content

Commit d76011c

Browse files
committed
make scan-build happy
1 parent 95cff2c commit d76011c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pl_range_funcs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ create_range_partitions_internal(PG_FUNCTION_ARGS)
10981098
MakeBoundInf(PLUS_INFINITY) :
10991099
MakeBound(datums[i+1]);
11001100
RangeVar *rv = npartnames > 0 ? rangevars[i] : NULL;
1101-
char *tablespace = ntablespaces > 0 ? tablespaces[i] : NULL;
1101+
char *tablespace = tablespaces ? tablespaces[i] : NULL;
11021102

11031103
(void) create_single_range_partition_internal(relid,
11041104
&start,

0 commit comments

Comments
 (0)