1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Minor bug fixes.

Enhanced function docs.
This commit is contained in:
Werner Koch 2009-07-07 16:51:33 +00:00
parent e1f6e32da0
commit 44add1c310
6 changed files with 46 additions and 19 deletions

View file

@ -267,6 +267,9 @@ set_file_fd (const char *name, int fd)
/* Setup a new stream. */
#ifdef USE_FUNWRITER
/* The xmalloc below is justified because we can expect that this
function is called only during initialization and there is no
easy way out of this error condition. */
cookie = jnlib_xmalloc (sizeof *cookie + (name? strlen (name):0));
strcpy (cookie->name, name? name:"");
cookie->quiet = 0;