diff options
Diffstat (limited to 'agent/trustlist.c')
-rw-r--r-- | agent/trustlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/trustlist.c b/agent/trustlist.c index 51e655a06..0034525ad 100644 --- a/agent/trustlist.c +++ b/agent/trustlist.c @@ -317,8 +317,7 @@ read_trustfiles (void) } /* Fixme: we should drop duplicates and sort the table. */ - - ti = xtryrealloc (table, tableidx * sizeof *table); + ti = xtryrealloc (table, (tableidx?tableidx:1) * sizeof *table); if (!ti) { xfree (table); |