[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
		| @@ -84,7 +84,7 @@ bool desktop_settings_scene_favorite_on_event(void* context, SceneManagerEvent e | ||||
|         scene_manager_get_scene_state(app->scene_manager, DesktopSettingsAppSceneFavorite); | ||||
|  | ||||
|     if(event.type == SceneManagerEventTypeCustom) { | ||||
|         if(strcmp(FLIPPER_APPS[event.event].name, FAP_LOADER_APP_NAME)) { | ||||
|         if(strcmp(FLIPPER_APPS[event.event].name, FAP_LOADER_APP_NAME) != 0) { | ||||
|             if(primary_favorite) { | ||||
|                 app->settings.favorite_primary.is_external = false; | ||||
|                 strncpy( | ||||
|   | ||||
| @@ -32,9 +32,7 @@ bool desktop_settings_scene_pin_setup_howto_on_event(void* context, SceneManager | ||||
|             consumed = true; | ||||
|             break; | ||||
|         default: | ||||
|             furi_assert(0); | ||||
|             consumed = true; | ||||
|             break; | ||||
|             furi_crash(NULL); | ||||
|         } | ||||
|     } | ||||
|     return consumed; | ||||
|   | ||||
| @@ -52,9 +52,7 @@ bool desktop_settings_scene_pin_setup_howto2_on_event(void* context, SceneManage | ||||
|             break; | ||||
|         } | ||||
|         default: | ||||
|             furi_assert(0); | ||||
|             consumed = true; | ||||
|             break; | ||||
|             furi_crash(NULL); | ||||
|         } | ||||
|     } | ||||
|     return consumed; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user