Home GnuPG
Diffusion GPGME a09ed3f26a1f

qt: Don't use qstrdup in test passphrase cb
a09ed3f26a1fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
aheineckeAuthored on Jan 12 2017, 11:44 AM
Parents
rM56926c9b5012: qt: Clean up test dirs on failure
Branches
Unknown
Tags
Unknown

Event Timeline

Andre Heinecke <aheinecke@intevation.de> committed rMa09ed3f26a1f: qt: Don't use qstrdup in test passphrase cb (authored by Andre Heinecke <aheinecke@intevation.de>).Jan 12 2017, 11:44 AM