blob: 4b69380bc6e9c7a41dfda04f0c401c743caf5cd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Avoid uninitialized variable.
diff -ur dvisvgm-0.8.7.orig/src/InputReader.cpp dvisvgm-0.8.7/src/InputReader.cpp
--- dvisvgm-0.8.7.orig/src/InputReader.cpp 2009-11-06 22:17:58.000000000 +0100
+++ dvisvgm-0.8.7/src/InputReader.cpp 2009-11-13 18:26:47.000000000 +0100
@@ -45,7 +45,7 @@
* @param[in] consume if true, the buffer pointer is moved to the first charater following string s
* @return true if s was found */
bool InputReader::skipUntil (const char *s, bool consume) {
- bool found;
+ bool found = false;
while (!eof() && !(found = check(s, consume)))
get();
return found;
|