_
This commit is contained in:
		
							
								
								
									
										5
									
								
								env/env1.c
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								env/env1.c
									
									
									
									
										vendored
									
									
								
							@ -6,7 +6,7 @@
 | 
			
		||||
/*   By: erey-bet <marvin@42.fr>                    +#+  +:+       +#+        */
 | 
			
		||||
/*                                                +#+#+#+#+#+   +#+           */
 | 
			
		||||
/*   Created: 2023/02/02 14:39:56 by erey-bet          #+#    #+#             */
 | 
			
		||||
/*   Updated: 2023/04/18 12:47:08 by erey-bet         ###   ########.fr       */
 | 
			
		||||
/*   Updated: 2023/04/18 13:57:38 by erey-bet         ###   ########.fr       */
 | 
			
		||||
/*                                                                            */
 | 
			
		||||
/* ************************************************************************** */
 | 
			
		||||
 | 
			
		||||
@ -78,7 +78,10 @@ int	create_value_by_key(char *key, char *value, t_list **head)
 | 
			
		||||
	t_env	*content;
 | 
			
		||||
 | 
			
		||||
	if (set_value_by_key(key, value, head) == 0)
 | 
			
		||||
	{
 | 
			
		||||
		free(key);
 | 
			
		||||
		return (0);
 | 
			
		||||
	}
 | 
			
		||||
	content = ft_calloc(1, sizeof(t_env));
 | 
			
		||||
	if (content == NULL)
 | 
			
		||||
		return (1);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user