pipeline parse: note that | token at the end may lead to undefined behaviour

This commit is contained in:
Khaïs COLIN 2025-02-24 15:49:15 +01:00
parent a8711568c1
commit 8606774781
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/24 14:36:43 by khais #+# #+# */
/* Updated: 2025/02/24 15:21:37 by khais ### ########.fr */
/* Updated: 2025/02/24 15:53:04 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -92,6 +92,9 @@ static void pipeline_delimit(t_pipeline_builder *builder)
** additional memory freeing is required.
** in case of error in pipeline_delimit, it will call destroy, which will set
** builder->pipeline to NULL
**
** Note: if there is a | token at the end of the input stream, the results are
** undefined.
*/
t_pipeline *pipeline_parse_wordlist(t_pipeline_builder *builder)
{