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);
|
||||
|
||||
PG_RETURN_ARRAYTYPE_P(astate
|
||||
? makeArrayResult(astate, CurrentMemoryContext)
|
||||
: construct_empty_array(TEXTOID));
|
||||
if (astate)
|
||||
PG_RETURN_ARRAYTYPE_P(makeArrayResult(astate, CurrentMemoryContext));
|
||||
else
|
||||
PG_RETURN_ARRAYTYPE_P(construct_empty_array(TEXTOID));
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue