summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-03-28 10:20:52 -0400
committerKurt Hindenburg <[email protected]>2017-03-28 10:20:52 -0400
commita4f5d539ff3a89a8318f91430d4c6d484ca936d9 (patch)
treec6e33781dcd8c48039d6bd7a48a750efe58dd3e4
parentba6e758833746b9fea752231615ead472dd6468d (diff)
initialize variable
-rw-r--r--src/History.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/History.cpp b/src/History.cpp
index 71db2e8..bebe4bf 100644
--- a/src/History.cpp
+++ b/src/History.cpp
@@ -239,7 +239,7 @@ int HistoryScrollFile::getLineLen(int lineno)
bool HistoryScrollFile::isWrappedLine(int lineno)
{
if (lineno >= 0 && lineno <= getLines()) {
- unsigned char flag;
+ unsigned char flag = 0;
_lineflags.get((unsigned char*)&flag, sizeof(unsigned char), (lineno)*sizeof(unsigned char));
return flag;
}