From: Tom Lane Date: Sun, 28 Dec 2014 17:03:32 +0000 (-0500) Subject: Remove duplicate assignment in new pg_get_object_address() function. X-Git-Tag: REL9_5_ALPHA1~989 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a11df14498434bbb5e16dfa7aecbf71bf24d196;p=postgresql Remove duplicate assignment in new pg_get_object_address() function. Noted by Coverity. --- diff --git a/src/backend/catalog/objectaddress.c b/src/backend/catalog/objectaddress.c index 85079d620e..7cb46e1278 100644 --- a/src/backend/catalog/objectaddress.c +++ b/src/backend/catalog/objectaddress.c @@ -1416,7 +1416,6 @@ pg_get_object_address(PG_FUNCTION_ARGS) Relation relation; /* Decode object type, raise error if unknown */ - ttype = TextDatumGetCString(PG_GETARG_TEXT_P(0)); itype = read_objtype_from_string(ttype); if (itype < 0) ereport(ERROR,