Avoid compiler warning about type mismatch in ?:
This commit is contained in:
parent
26ab098b8b
commit
fae032efc9
7
uri.c
7
uri.c
|
@ -242,9 +242,10 @@ uri_path(PG_FUNCTION_ARGS)
|
||||||
}
|
}
|
||||||
uriFreeUriMembersA(&uri);
|
uriFreeUriMembersA(&uri);
|
||||||
|
|
||||||
PG_RETURN_ARRAYTYPE_P(astate
|
if (astate)
|
||||||
? makeArrayResult(astate, CurrentMemoryContext)
|
PG_RETURN_ARRAYTYPE_P(makeArrayResult(astate, CurrentMemoryContext));
|
||||||
: construct_empty_array(TEXTOID));
|
else
|
||||||
|
PG_RETURN_ARRAYTYPE_P(construct_empty_array(TEXTOID));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue