summaryrefslogtreecommitdiffstats
path: root/apps/plugins/doom/m_misc.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-19 21:20:41 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-05-13 18:33:27 +0100
commit237919f1c337b2ac0b5b30d65964dd4bbb126457 (patch)
treefab62abc7c42eb54325ddddae1b73cf6bc32355c /apps/plugins/doom/m_misc.c
parent942b1dd072abc071a4024adc5198976878024bcb (diff)
downloadrockbox-237919f1c337b2ac0b5b30d65964dd4bbb126457.tar.gz
rockbox-237919f1c337b2ac0b5b30d65964dd4bbb126457.zip
Fix invalid use of bool in doom
Settings code tries to cast the bool pointer to an int pointer and then write through it, which makes AddressSanitizer whine. Change-Id: I1d6162fc98144cd6b40444016b3b48ef02967324
Diffstat (limited to 'apps/plugins/doom/m_misc.c')
-rw-r--r--apps/plugins/doom/m_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/doom/m_misc.c b/apps/plugins/doom/m_misc.c
index 586a4a1c2f..0318c9d741 100644
--- a/apps/plugins/doom/m_misc.c
+++ b/apps/plugins/doom/m_misc.c
@@ -308,7 +308,7 @@ default_t defaults[] =
{"screen_height",{&desired_screenheight, NULL},{200, NULL},200,1200,
def_int,ss_none, 0, 0},*/
#if(LCD_HEIGHT>LCD_WIDTH)
- {"rotate_screen",{(void *)&rotate_screen, NULL},{0, NULL},0,1,
+ {"rotate_screen",{&rotate_screen, NULL},{0, NULL},0,1,
def_bool,ss_none, 0, 0}, /* kwk - rotate the screen 90 degrees */
#endif
{"fake_contrast",{&fake_contrast, NULL},{1, NULL},0,1,