merge(third_party/git): Merge squashed git subtree at v2.23.0
Merge commit '1b593e1ea4' as 'third_party/git'
			
			
This commit is contained in:
		
						commit
						7ef0d62730
					
				
					 3629 changed files with 1139935 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								third_party/git/compat/strdup.c
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								third_party/git/compat/strdup.c
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| #include "../git-compat-util.h" | ||||
| 
 | ||||
| char *gitstrdup(const char *s1) | ||||
| { | ||||
| 	size_t len = strlen(s1) + 1; | ||||
| 	char *s2 = malloc(len); | ||||
| 
 | ||||
| 	if (s2) | ||||
| 		memcpy(s2, s1, len); | ||||
| 	return s2; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue