mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	Remove OOM checks: ff_create_stack_element()
This commit is contained in:
		@@ -520,9 +520,6 @@ vim_findfile_init (
 | 
				
			|||||||
      search_ctx->ffsc_wc_path,
 | 
					      search_ctx->ffsc_wc_path,
 | 
				
			||||||
      level, 0);
 | 
					      level, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (sptr == NULL)
 | 
					 | 
				
			||||||
    goto error_return;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ff_push(search_ctx, sptr);
 | 
					  ff_push(search_ctx, sptr);
 | 
				
			||||||
  search_ctx->ffsc_file_to_search = vim_strsave(filename);
 | 
					  search_ctx->ffsc_file_to_search = vim_strsave(filename);
 | 
				
			||||||
  return search_ctx;
 | 
					  return search_ctx;
 | 
				
			||||||
@@ -949,8 +946,6 @@ char_u *vim_findfile(void *search_ctx_arg)
 | 
				
			|||||||
      /* create a new stack entry */
 | 
					      /* create a new stack entry */
 | 
				
			||||||
      sptr = ff_create_stack_element(file_path,
 | 
					      sptr = ff_create_stack_element(file_path,
 | 
				
			||||||
          search_ctx->ffsc_wc_path, search_ctx->ffsc_level, 0);
 | 
					          search_ctx->ffsc_wc_path, search_ctx->ffsc_level, 0);
 | 
				
			||||||
      if (sptr == NULL)
 | 
					 | 
				
			||||||
        break;
 | 
					 | 
				
			||||||
      ff_push(search_ctx, sptr);
 | 
					      ff_push(search_ctx, sptr);
 | 
				
			||||||
    } else
 | 
					    } else
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user