summaryrefslogtreecommitdiffstats
path: root/libft
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-04-27 19:39:19 +0200
committersalad <fmoenne-@student.le-101.fr>2020-04-27 19:39:19 +0200
commitf00e66cd06e678b133cc1d086ff5d1f620ec4941 (patch)
treeb38a42a0ab7e988608b5d402473551c379f654b7 /libft
parentmerge master into fmoenne (diff)
download42-minishell-f00e66cd06e678b133cc1d086ff5d1f620ec4941.tar.gz
42-minishell-f00e66cd06e678b133cc1d086ff5d1f620ec4941.tar.bz2
42-minishell-f00e66cd06e678b133cc1d086ff5d1f620ec4941.tar.xz
42-minishell-f00e66cd06e678b133cc1d086ff5d1f620ec4941.tar.zst
42-minishell-f00e66cd06e678b133cc1d086ff5d1f620ec4941.zip
backslashes as intended, multiline quotes vont me tuer
Diffstat (limited to 'libft')
-rw-r--r--libft/src/ft_substr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libft/src/ft_substr.c b/libft/src/ft_substr.c
index 947a305..234ddc4 100644
--- a/libft/src/ft_substr.c
+++ b/libft/src/ft_substr.c
@@ -18,9 +18,7 @@ char
*ft_substr(const char *s, unsigned int start, size_t len)
{
char *nstr;
- size_t i;
- i = 0;
if (!(nstr = (char*)malloc((len + 1) * sizeof(char))))
return (NULL);
ft_strlcpy(nstr, s + start, len + 1);