qt: Don't use qstrdup in test passphrase cb
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 12 Jan 2017 10:44:11 +0000 (11:44 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 12 Jan 2017 10:44:11 +0000 (11:44 +0100)
commita09ed3f26a1fab54079c37c49df5c440cc792f78
tree7988a75b1bf66a019929fca607292b96ac616b77
parent56926c9b5012e8135541a933af1d69c5a81f02b3
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.
lang/qt/tests/t-support.h