From e8f2db7da3f0e60901b09ee6eada99a9e875497f Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 14 Dec 2016 11:40:11 +1100 Subject: py/runtime: Zero out fs_user_mount array in mp_init. There's no need to force ports to copy-and-paste this initialisation code. If FSUSERMOUNT is enabled then this zeroing out must be done. --- esp8266/main.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'esp8266/main.c') diff --git a/esp8266/main.c b/esp8266/main.c index 9883f9f96..6814248aa 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -52,9 +52,6 @@ STATIC void mp_reset(void) { mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib)); mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_)); mp_obj_list_init(mp_sys_argv, 0); - #if MICROPY_VFS_FAT - memset(MP_STATE_PORT(fs_user_mount), 0, sizeof(MP_STATE_PORT(fs_user_mount))); - #endif MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt); MP_STATE_PORT(term_obj) = MP_OBJ_NULL; MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL; -- cgit v1.2.3