]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
m4: import patch from OpenBSD
authorbapt <bapt@FreeBSD.org>
Mon, 9 Sep 2019 15:28:22 +0000 (15:28 +0000)
committerbapt <bapt@FreeBSD.org>
Mon, 9 Sep 2019 15:28:22 +0000 (15:28 +0000)
commit50c81b984a3e0ed59862949950df1af990e98d86
tree5d9e1da881a82d1cf6d4630d9c924a09cbe8b431
parentb0ad1359fb14c342ab9c09d701bea7e7d3522f10
m4: import patch from OpenBSD

by espie@
ifelse is special, fix argv parsing to avoid segfault

problem noticed by Matthew Green (netbsd), slightly different fix
so that argc counting makes more sense.

we might want to warn on wrong number of parameters later, but this is
somewhat inconsistent depending on the builtin right now.

okay millert@

Obtained from: OpenBSD
usr.bin/m4/eval.c