summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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;