summaryrefslogtreecommitdiff
path: root/src/gfx_layout.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-25 20:48:12 +0000
committerrubidium <rubidium@openttd.org>2013-06-25 20:48:12 +0000
commit3fe1e9176d4383b1c84d5f5e8631dcf8e931f1eb (patch)
treec43bb0957d8cf8d9c3b2050795df4dd65d0a50d4 /src/gfx_layout.cpp
parentf980d1a43c0b7f079acbab3057bb686b6ec9b86b (diff)
downloadopenttd-3fe1e9176d4383b1c84d5f5e8631dcf8e931f1eb.tar.xz
(svn r25473) -Fix: uninitialised warning
Diffstat (limited to 'src/gfx_layout.cpp')
-rw-r--r--src/gfx_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
index 861f390a9..4148d0548 100644
--- a/src/gfx_layout.cpp
+++ b/src/gfx_layout.cpp
@@ -282,7 +282,7 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width)
Line *l = new Line();
const WChar *begin = this->buffer;
- WChar *last_space;
+ WChar *last_space = NULL;
const WChar *last_char = begin;
int width = 0;