[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:
		@@ -13,7 +13,7 @@ ArchiveAppTypeEnum archive_get_app_type(const char* path) {
 | 
			
		||||
    }
 | 
			
		||||
    app_name++;
 | 
			
		||||
 | 
			
		||||
    for(size_t i = 0; i < COUNT_OF(known_apps); i++) {
 | 
			
		||||
    for(size_t i = 0; i < COUNT_OF(known_apps); i++) { //-V1008
 | 
			
		||||
        if(strncmp(app_name, known_apps[i], strlen(known_apps[i])) == 0) {
 | 
			
		||||
            return i;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -177,7 +177,7 @@ bool archive_favorites_read(void* context) {
 | 
			
		||||
 | 
			
		||||
    archive_set_item_count(browser, file_count);
 | 
			
		||||
 | 
			
		||||
    if(need_refresh) {
 | 
			
		||||
    if(need_refresh) { //-V547
 | 
			
		||||
        archive_favourites_rescan();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -116,7 +116,7 @@ bool archive_scene_browser_on_event(void* context, SceneManagerEvent event) {
 | 
			
		||||
        case ArchiveBrowserEventFileMenuPin: {
 | 
			
		||||
            const char* name = archive_get_name(browser);
 | 
			
		||||
            if(favorites) {
 | 
			
		||||
                archive_favorites_delete(name);
 | 
			
		||||
                archive_favorites_delete("%s", name);
 | 
			
		||||
                archive_file_array_rm_selected(browser);
 | 
			
		||||
                archive_show_file_menu(browser, false);
 | 
			
		||||
            } else if(archive_is_known_app(selected->type)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user