Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Mar 27, 2024
1 parent 73a6123 commit 5241d79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/initialization/check_args.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: reasuke <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/11 14:44:55 by reasuke #+# #+# */
/* Updated: 2024/02/20 14:19:12 by reasuke ### ########.fr */
/* Updated: 2024/03/27 13:07:53 by reasuke ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -20,8 +20,9 @@ static bool _has_not_digit(int argc, char **argv)
i = 1;
while (i < argc)
{
errno = 0;
ft_strtol(argv[i], &end_ptr, 10);
if (*end_ptr)
if (*end_ptr || errno)
return (true);
i++;
}
Expand Down

0 comments on commit 5241d79

Please sign in to comment.