[Commits] [SCM] claws branch, master, updated. 3.14.1-221-g21d4407
ticho at claws-mail.org
ticho at claws-mail.org
Wed Mar 8 12:08:23 CET 2017
The branch, master has been updated
via 21d44076177d8cb5755b020a8e0fb8f1f183da05 (commit)
from a3050f1d0ba4c5a31ac873b1cc3067dd77002705 (commit)
Summary of changes:
src/plugins/pgpcore/sgpgme.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 21d44076177d8cb5755b020a8e0fb8f1f183da05
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Wed Mar 8 12:07:51 2017 +0100
Added debug output for failure cases in sgpgme_data_release_and_get_mem()
diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c
index 54289f6..db9b354 100644
--- a/src/plugins/pgpcore/sgpgme.c
+++ b/src/plugins/pgpcore/sgpgme.c
@@ -1126,10 +1126,8 @@ void *sgpgme_data_release_and_get_mem(gpgme_data_t data, size_t *len)
ssize_t r = 0;
size_t w = 0;
- if (data == NULL)
- return NULL;
- if (len == NULL)
- return NULL;
+ cm_return_val_if_fail(data != NULL, NULL);
+ cm_return_val_if_fail(len != NULL, NULL);
/* I know it's deprecated, but we don't compile with _LARGEFILE */
cm_gpgme_data_rewind(data);
@@ -1150,6 +1148,7 @@ void *sgpgme_data_release_and_get_mem(gpgme_data_t data, size_t *len)
gpgme_data_release(data);
if (r < 0) {
+ g_warning("gpgme_data_read() returned an error: %d", (int)r);
free(result);
*len = 0;
return NULL;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list