diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-11-19 19:43:56 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-11-19 19:43:56 +0000 |
commit | 8852d6371103afb6aceec5fe357a86cb83432dd2 (patch) | |
tree | cab768899f603b338844474ab7a7735b78bc7d2d /src | |
parent | 29d0c68bb0d30319c4612b7e24dbe43a9c7a7404 (diff) | |
download | openttd-8852d6371103afb6aceec5fe357a86cb83432dd2.tar.xz |
(svn r26041) -Fix: make variable initialization more obvious for humans and compilers.
Diffstat (limited to 'src')
-rw-r--r-- | src/strings.cpp | 2 |
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; |