]> granicus.if.org Git - postgresql/commitdiff
Remove duplicate assignment in new pg_get_object_address() function.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Dec 2014 17:03:32 +0000 (12:03 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Dec 2014 17:03:32 +0000 (12:03 -0500)
Noted by Coverity.

src/backend/catalog/objectaddress.c

index 85079d620eeb989f25f89a4fc0af004f7b9ab3a1..7cb46e127872cece1ef89bb22dd3068537a31fa3 100644 (file)
@@ -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,