]> granicus.if.org Git - postgresql/commitdiff
Another FUNC_MAX_ARGS tweak.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Jan 2000 05:41:49 +0000 (05:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Jan 2000 05:41:49 +0000 (05:41 +0000)
src/backend/commands/trigger.c

index c8dfd504e7b32f97193d92f9f96771036672612f..86bacf1be5c14b4ee7f44a4645851445c4e3554b 100644 (file)
@@ -41,7 +41,7 @@ void
 CreateTrigger(CreateTrigStmt *stmt)
 {
        int16           tgtype;
-       int16           tgattr[FUNC_MAX_ARGS] = {0};
+       int16           tgattr[FUNC_MAX_ARGS];
        Datum           values[Natts_pg_trigger];
        char            nulls[Natts_pg_trigger];
        Relation        rel;
@@ -228,6 +228,7 @@ CreateTrigger(CreateTrigStmt *stmt)
                values[Anum_pg_trigger_tgnargs - 1] = Int16GetDatum(0);
                values[Anum_pg_trigger_tgargs - 1] = PointerGetDatum(byteain(""));
        }
+       MemSet(tgattr, 0, FUNC_MAX_ARGS * sizeof(int16));
        values[Anum_pg_trigger_tgattr - 1] = PointerGetDatum(tgattr);
 
        tuple = heap_formtuple(tgrel->rd_att, values, nulls);