bug found

found bug in parser that made link adding impossible
This commit is contained in:
Tanguy MAZE
2019-04-24 09:54:24 +02:00
parent c35deace58
commit fe1c85371f
8 changed files with 37 additions and 27 deletions

View File

@@ -6,7 +6,7 @@
/* By: mndhlovu <mndhlovu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/22 08:55:30 by mndhlovu #+# #+# */
/* Updated: 2019/04/22 12:43:44 by mndhlovu ### ########.fr */
/* Updated: 2019/04/24 09:49:38 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -44,7 +44,7 @@ int lm_check_forbiden_chars(char *line, int flag)
&& (hash == NULL || (hash != NULL && line[1] != '#')))
return (1);
if (flag == 3 && dash != NULL
&& (hash == NULL || (hash != NULL && line[1] != '#')))
&& hash == NULL)
return (1);
}
return (0);