[git] GPGME - branch, master, updated. gpgme-1.8.0-27-ga09ed3f
by Andre Heinecke
cvs at cvs.gnupg.org
Thu Jan 12 11:46:28 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, master has been updated
via a09ed3f26a1fab54079c37c49df5c440cc792f78 (commit)
from 56926c9b5012e8135541a933af1d69c5a81f02b3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a09ed3f26a1fab54079c37c49df5c440cc792f78
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Thu Jan 12 11:44:11 2017 +0100
qt: Don't use qstrdup in test passphrase cb
* lang/qt/tests/t-support.h (TestPassphraseProvider::getPassphrase):
Use gpgrt_asprintf instead of strdup.
--
To avoid problems on MacOS we want to avoid strdup so that
qgpgme can be built without extensions. But qstrdup allocates
with new and not with malloc, so use gpgrt_asprintf instead.
diff --git a/lang/qt/tests/t-support.h b/lang/qt/tests/t-support.h
index 2630b7d..e3f0e78 100644
--- a/lang/qt/tests/t-support.h
+++ b/lang/qt/tests/t-support.h
@@ -34,6 +34,8 @@
#include "interfaces/passphraseprovider.h"
#include <QObject>
+#include <gpg-error.h>
+
namespace GpgME
{
class TestPassphraseProvider : public PassphraseProvider
@@ -42,7 +44,9 @@ public:
char *getPassphrase(const char * /*useridHint*/, const char * /*description*/,
bool /*previousWasBad*/, bool &/*canceled*/) Q_DECL_OVERRIDE
{
- return qstrdup("abc");
+ char *ret;
+ gpgrt_asprintf(&ret, "abc");
+ return ret;
}
};
} // namespace GpgME
-----------------------------------------------------------------------
Summary of changes:
lang/qt/tests/t-support.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list