aboutsummaryrefslogtreecommitdiffstats
path: root/agent/trustlist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-11-09 16:09:46 +0000
committerWerner Koch <[email protected]>2006-11-09 16:09:46 +0000
commitc1f4a8edff15737b15c209001d0130036416886d (patch)
tree84477a2bdb7c1c803649e81e6e624f695ca3462e /agent/trustlist.c
parentpost release updates (diff)
downloadgnupg-c1f4a8edff15737b15c209001d0130036416886d.tar.gz
gnupg-c1f4a8edff15737b15c209001d0130036416886d.zip
gpg-agent.c (main): In detached mode connect standard descriptors to /dev/null.
Other minor fixes
Diffstat (limited to 'agent/trustlist.c')
-rw-r--r--agent/trustlist.c3
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);