hidden norm cleanup

This commit is contained in:
Tanguy MAZE
2019-03-16 17:50:27 +01:00
parent d49f964045
commit acf5431d14
12 changed files with 104 additions and 106 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/25 16:25:18 by tmaze #+# #+# */
/* Updated: 2019/02/28 16:22:02 by tmaze ### ########.fr */
/* Updated: 2019/03/09 15:13:49 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -70,7 +70,7 @@ char **ft_strsplitwhitespace(char *s)
if (s != NULL)
{
nb_words = count_words_ws(s);
if ((tab = (char**)malloc(sizeof(char**) * (nb_words + 1))) == NULL)
if ((tab = (char**)malloc(sizeof(char*) * (nb_words + 1))) == NULL)
return (NULL);
tab[nb_words] = NULL;
return (get_table_ws(s, tab));