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 /apps | |
parent | 55156d996950ae93c1363937f1de929a0031d774 (diff) | |
download | rockbox-2076363fda7280077e341dccd5015a505945770e.tar.gz rockbox-2076363fda7280077e341dccd5015a505945770e.zip |
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
Diffstat (limited to 'apps')
-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) | |||
942 | pf = rb->font_get(FONT_UI); | 942 | pf = rb->font_get(FONT_UI); |
943 | 943 | ||
944 | display_lines = LCD_HEIGHT / pf->height; | 944 | display_lines = LCD_HEIGHT / pf->height; |
945 | display_columns = LCD_WIDTH; | 945 | draw_columns = display_columns = LCD_WIDTH; |
946 | #else | 946 | #else |
947 | /* REAL fixed pitch :) all chars use up 1 cell */ | 947 | /* REAL fixed pitch :) all chars use up 1 cell */ |
948 | display_lines = 2; | 948 | display_lines = 2; |