From fae032efc956822a64c7fde47fcd2360eab85807 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 13 Mar 2015 01:17:06 -0400 Subject: [PATCH] Avoid compiler warning about type mismatch in ?: --- uri.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uri.c b/uri.c index 033d378..c665dcd 100644 --- a/uri.c +++ b/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