diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index 861f390a9d..4148d05489 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;