Skip to content

Commit

Permalink
fix: norminette
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Demirkylych committed Jun 11, 2024
1 parent 0576faf commit d7e7d8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Empty file removed To
Empty file.
9 changes: 1 addition & 8 deletions src/utils/stack_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: rmikhayl <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/31 20:39:16 by rmikhayl #+# #+# */
/* Updated: 2024/06/05 16:09:01 by rmikhayl ### ########.fr */
/* Updated: 2024/06/11 15:38:29 by dmdemirk ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -94,13 +94,6 @@ char **list_to_array(t_token *head)
while (i < count)
{
arr[i] = ft_strdup(current->data);
if (!arr[i])
{
while(i-- > 0)
free(arr[i]);
free(arr);
return (NULL);
}
current = current->next;
i++;
}
Expand Down

0 comments on commit d7e7d8f

Please sign in to comment.