diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-07-15 13:53:18 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-07-15 13:53:18 +0000 |
commit | 2076363fda7280077e341dccd5015a505945770e (patch) | |
tree | c28d8e80e778223506d4f9fa1ff2d649b60e0750 | |
parent | 55156d996950ae93c1363937f1de929a0031d774 (diff) |
Fix for uninitialized variable, caused crash when viewing a file that started with whitespace. Fixes FS#5658 with solution given by bugsubmitter (Mark Arigo). Viewer code still needs more work but at least won't crash on this anymore.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10213 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/viewer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 9c60fd155f..af35638bfc 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -942,7 +942,7 @@ static bool viewer_init(void) pf = rb->font_get(FONT_UI); display_lines = LCD_HEIGHT / pf->height; - display_columns = LCD_WIDTH; + draw_columns = display_columns = LCD_WIDTH; #else /* REAL fixed pitch :) all chars use up 1 cell */ display_lines = 2; |