Commit 87960e3f authored by Kurt Hindenburg's avatar Kurt Hindenburg

set initial value to variable

parent db4c5134
......@@ -291,7 +291,7 @@ qint64 HistoryScrollFile::startOfLine(int lineno)
return 0;
}
if (lineno <= getLines()) {
qint64 res;
qint64 res = 0;
_index.get(reinterpret_cast<char*>(&res), sizeof(qint64), (lineno - 1)*sizeof(qint64));
return res;
}
......
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