Commit c0f6b1f6 authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning found by cppcheck

parent 9cbd48cd
......@@ -72,14 +72,13 @@ QByteArray Ldif::assembleLine(const QString &fieldname,
const QByteArray &value,
uint linelen, bool url)
{
bool safe = false;
bool isDn;
QByteArray result;
if (url) {
result = fieldname.toUtf8() + ":< " + value;
} else {
isDn = fieldname.toLower() == QLatin1String("dn");
bool safe = false;
bool isDn = fieldname.toLower() == QLatin1String("dn");
//SAFE-INIT-CHAR
if (value.size() > 0 && value[0] > 0 && value[0] != '\n' &&
value[0] != '\r' && value[0] != ':' && value[0] != '<') {
......
......@@ -90,7 +90,7 @@ private:
StringCache &m_cache;
std::function<QByteArray()> m_fetchAnotherLine;
VCardLine *m_vCardLine;
VCardLine *m_vCardLine = nullptr;
QByteArray m_encoding;
QByteArray m_charset;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment