Commit b711d2ed authored by abenoit's avatar abenoit
Browse files

check ambig redir null protect

parent e23fad36
......@@ -17,6 +17,8 @@ int find_ambig_redir(char **redir_paths, enum e_redir_op *redir_types)
int i;
i = 0;
if (redir_paths == NULL || redir_types == NULL)
return (FAILURE);
while (redir_paths[i] != NULL)
if (redir_types[i] == AMBIG)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment