update: Updated stuff so the scanner works great now

This commit is contained in:
Maieul BOYER 2024-09-06 16:46:01 +02:00
parent 88c34b3904
commit 475038e2b7
No known key found for this signature in database
21 changed files with 787 additions and 340 deletions

View file

@ -65,11 +65,9 @@ t_error vec_str_pop(t_vec_str *vec, t_str *value)
t_str temp_value;
t_str *ptr;
if (vec == NULL)
if (vec == NULL || vec->len == 0)
return (ERROR);
ptr = value;
if (vec->len == 0)
return (ERROR);
if (value == NULL)
ptr = &temp_value;
vec->len--;