From a6343654e8121d77bace9a4c4db8fe2dfd30cbe5 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 31 Aug 2015 08:53:42 -0500 Subject: Fix FTBFS when pcsc not available --- tdecore/tdehw/tdecryptographiccarddevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tdecore') 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 } -- cgit v1.2.1