summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-22 13:41:48 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:47:11 (GMT)
commitfae02a12482805a6bfe6af116fb0b41bf014b572 (patch)
tree378e4d319a5808047fee56201beecd421dca4154
parent4b66ae4ff8ab925faf0fa0b11ff8a667570c1103 (diff)
Fix unitialized value (used when canIterateTags is 0)
-rw-r--r--src/3rdparty/o5mreader/o5mreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/o5mreader/o5mreader.cpp b/src/3rdparty/o5mreader/o5mreader.cpp
index 92b1348..e7b2753 100644
--- a/src/3rdparty/o5mreader/o5mreader.cpp
+++ b/src/3rdparty/o5mreader/o5mreader.cpp
@@ -340,7 +340,7 @@ O5mreaderIterateRet o5mreader_iterateTags(O5mreader *pReader, char** pKey, char*
}
O5mreaderIterateRet o5mreader_skipTags(O5mreader *pReader) {
- int ret;
+ int ret = O5MREADER_ITERATE_RET_DONE;
if ( pReader->canIterateTags ) {
while ( O5MREADER_ITERATE_RET_NEXT == (ret = o5mreader_iterateTags(pReader, NULL, NULL)) );
}