summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2014-12-22 21:30:30 +0100
committerThomas Jarosch <tomj@simonv.com>2014-12-22 21:30:30 +0100
commit5d3aa1bce1ea8113f27153a0820b30d103ca35b0 (patch)
treea324495dd56f16e543a80cc9733a8d8c7520dfd9 /apps/settings.c
parent06eeab02422b49680a812e0120806f8628cd9c38 (diff)
downloadrockbox-5d3aa1bce1ea8113f27153a0820b30d103ca35b0.tar.gz
rockbox-5d3aa1bce1ea8113f27153a0820b30d103ca35b0.tar.bz2
rockbox-5d3aa1bce1ea8113f27153a0820b30d103ca35b0.zip
Fix red (pass pointer of 'item')
Change-Id: I2d04251519623b2531948615c35e61203f9a9940
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 4b2c1fe3db..16d572eb0d 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1255,7 +1255,7 @@ bool set_option(const char* string, const void* variable, enum optiontype type,
function, UNIT_INT, 0, numoptions-1, 1,
set_option_formatter, set_option_get_talk_id
};
- memset(item, 0, sizeof(struct settings_list));
+ memset(&item, 0, sizeof(struct settings_list));
set_option_options = options;
item.int_setting = &data;
item.flags = F_INT_SETTING|F_T_INT;