summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib/xlcd_scroll.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-08-25 20:47:44 +0000
committerThomas Jarosch <tomj@simonv.com>2011-08-25 20:47:44 +0000
commit9dcde3571cf7270d48d5c86e820a5699b934a278 (patch)
tree4e323952728630b4327d3abcb1c26b2aa695119c /apps/plugins/lib/xlcd_scroll.c
parente0024c9a7138ce758524b2d0c03731f379a1b002 (diff)
downloadrockbox-9dcde3571cf7270d48d5c86e820a5699b934a278.tar.gz
rockbox-9dcde3571cf7270d48d5c86e820a5699b934a278.zip
Also fix uninitialized variables in xlcd_scroll_up()/xlcd_scroll_down()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30354 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/xlcd_scroll.c')
-rw-r--r--apps/plugins/lib/xlcd_scroll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/xlcd_scroll.c b/apps/plugins/lib/xlcd_scroll.c
index 8f55f4153e..f2fc71ea47 100644
--- a/apps/plugins/lib/xlcd_scroll.c
+++ b/apps/plugins/lib/xlcd_scroll.c
@@ -367,8 +367,8 @@ void xlcd_scroll_down(int count)
/* Scroll up */
void xlcd_scroll_up(int count)
{
- int bitcount, oldmode;
- int blockcount, blocklen;
+ int bitcount=0, oldmode;
+ int blockcount=0, blocklen;
if ((unsigned) count >= LCD_HEIGHT)
{
@@ -561,8 +561,8 @@ void xlcd_scroll_up(int count)
/* Scroll up */
void xlcd_scroll_down(int count)
{
- int bitcount, oldmode;
- int blockcount, blocklen;
+ int bitcount=0, oldmode;
+ int blockcount=0, blocklen;
if ((unsigned) count >= LCD_HEIGHT)
{