diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-08-31 08:53:42 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-08-31 08:53:42 -0500 |
commit | a6343654e8121d77bace9a4c4db8fe2dfd30cbe5 (patch) | |
tree | efcac1f706aee6c0eddefc366b3dc1775adcc767 /tdecore/tdehw | |
parent | 4925611808ccb524a6c0bd225fb39b52ae1cf1ae (diff) | |
download | tdelibs-a6343654e8121d77bace9a4c4db8fe2dfd30cbe5.tar.gz tdelibs-a6343654e8121d77bace9a4c4db8fe2dfd30cbe5.zip |
Fix FTBFS when pcsc not available
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r-- | tdecore/tdehw/tdecryptographiccarddevice.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp index 7c8e3c7f4..029b8c57c 100644 --- a/tdecore/tdehw/tdecryptographiccarddevice.cpp +++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp @@ -53,11 +53,15 @@ static TQString pcsc_error_code_to_string(long errcode) { #endif CryptoCardDeviceWatcher::CryptoCardDeviceWatcher() { +#ifdef WITH_PCSC m_readerStates = NULL; +#endif } CryptoCardDeviceWatcher::~CryptoCardDeviceWatcher() { +#ifdef WITH_PCSC free(m_readerStates); +#endif } void CryptoCardDeviceWatcher::run() { @@ -208,6 +212,8 @@ TQString CryptoCardDeviceWatcher::getCardATR(TQString readerName) { } return atr_formatted; +#else + return TQString::null; #endif } |