mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
[g13] Add RECIPEINT and CREATE command.
[sm] Chnage --include-certs default
This commit is contained in:
parent
d839e154d3
commit
97be197d31
16 changed files with 150 additions and 64 deletions
|
@ -57,6 +57,25 @@ add_to_strlist( strlist_t *list, const char *string )
|
|||
}
|
||||
|
||||
|
||||
/* Add STRING to the LIST at the front. This function returns NULL
|
||||
and sets ERRNO on memory shortage. */
|
||||
strlist_t
|
||||
add_to_strlist_try (strlist_t *list, const char *string)
|
||||
{
|
||||
strlist_t sl;
|
||||
|
||||
sl = jnlib_malloc (sizeof *sl + strlen (string));
|
||||
if (sl)
|
||||
{
|
||||
sl->flags = 0;
|
||||
strcpy (sl->d, string);
|
||||
sl->next = *list;
|
||||
*list = sl;
|
||||
}
|
||||
return sl;
|
||||
}
|
||||
|
||||
|
||||
/* Same as add_to_strlist() but if IS_UTF8 is *not* set, a conversion
|
||||
to UTF-8 is done. This function terminates the process on memory
|
||||
shortage. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue