From 2076363fda7280077e341dccd5015a505945770e Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 15 Jul 2006 13:53:18 +0000 Subject: 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 --- apps/plugins/viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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; -- cgit v1.2.3