summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-11-19 19:43:56 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-11-19 19:43:56 +0000
commit8852d6371103afb6aceec5fe357a86cb83432dd2 (patch)
treecab768899f603b338844474ab7a7735b78bc7d2d /src
parent29d0c68bb0d30319c4612b7e24dbe43a9c7a7404 (diff)
downloadopenttd-8852d6371103afb6aceec5fe357a86cb83432dd2.tar.xz
(svn r26041) -Fix: make variable initialization more obvious for humans and compilers.
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index efc68ce41..0a6b23902 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -801,7 +801,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
/* We have to restore the original offset here to to read the correct values. */
args->offset = orig_offset;
}
- WChar b;
+ WChar b = '\0';
uint next_substr_case_index = 0;
char *buf_start = buff;
std::stack<const char *> str_stack;