aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/mcufont/mf_wordwrap.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-11-02 09:26:32 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-11-02 09:26:32 +0100
commit2dcd3509c9313e9de6022dc8a6ba5b91556a1bfa (patch)
tree2f959b95841cbf07f6694ba2fa08778692e92fa1 /src/gdisp/mcufont/mf_wordwrap.c
parent69de17687c304e4699804e6644dd156099de84c6 (diff)
downloaduGFX-2dcd3509c9313e9de6022dc8a6ba5b91556a1bfa.tar.gz
uGFX-2dcd3509c9313e9de6022dc8a6ba5b91556a1bfa.tar.bz2
uGFX-2dcd3509c9313e9de6022dc8a6ba5b91556a1bfa.zip
Fixing word-wrap
Diffstat (limited to 'src/gdisp/mcufont/mf_wordwrap.c')
-rw-r--r--src/gdisp/mcufont/mf_wordwrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gdisp/mcufont/mf_wordwrap.c b/src/gdisp/mcufont/mf_wordwrap.c
index 4e2b1d4f..4c563c3f 100644
--- a/src/gdisp/mcufont/mf_wordwrap.c
+++ b/src/gdisp/mcufont/mf_wordwrap.c
@@ -172,8 +172,8 @@ static void tune_lines(struct linelen_s *current, struct linelen_s *previous,
void mf_wordwrap(const struct mf_font_s *font, int16_t width,
mf_str text, mf_line_callback_t callback, void *state)
{
- struct linelen_s current;
- struct linelen_s previous;
+ struct linelen_s current = { 0 };
+ struct linelen_s previous = { 0 };
bool full;
current.start = text;