diff options
author | Werner Koch <[email protected]> | 2006-11-09 16:09:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-11-09 16:09:46 +0000 |
commit | c1f4a8edff15737b15c209001d0130036416886d (patch) | |
tree | 84477a2bdb7c1c803649e81e6e624f695ca3462e /agent/trustlist.c | |
parent | post release updates (diff) | |
download | gnupg-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.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); |