mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-11-04 14:08:17 +00:00 
			
		
		
		
	treebuilder: remove shadowing variable in write_with_buffer
				
					
				
			The `git_tree_entry *entry` variable is defined twice inside of this function. While this is not a problem currently, remove the shadowing variable to avoid future confusion.
This commit is contained in:
		
							parent
							
								
									4f9327faf9
								
							
						
					
					
						commit
						8d1e71f5a2
					
				@ -841,7 +841,7 @@ int git_treebuilder_write_with_buffer(git_oid *oid, git_treebuilder *bld, git_bu
 | 
			
		||||
	git_vector_sort(&entries);
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < entries.length && !error; ++i) {
 | 
			
		||||
		git_tree_entry *entry = git_vector_get(&entries, i);
 | 
			
		||||
		entry = git_vector_get(&entries, i);
 | 
			
		||||
 | 
			
		||||
		git_buf_printf(tree, "%o ", entry->attr);
 | 
			
		||||
		git_buf_put(tree, entry->filename, entry->filename_len + 1);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user