common: Use new function to print a failure of xtrymalloc.
authorWerner Koch <wk@gnupg.org>
Mon, 25 Apr 2016 15:26:57 +0000 (17:26 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 25 Apr 2016 15:26:57 +0000 (17:26 +0200)
commit8776abbe02935e720018f3ef6ffd48f21435ff8b
tree6a848deb9fd8199520300824752816cec32365d8
parentb8cb0973bcbe201a1e32a326dd97c3e72778b9d8
common: Use new function to print a failure of xtrymalloc.

* common/miscellaneous.c (xoutofcore): New.
* common/strlist.c (append_to_strlist): Use instead of abort.
(append_to_strlist_try): Use xtrymalloc instead of xmalloc.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/miscellaneous.c
common/strlist.c
common/util.h