]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Terminate filter_create_ext() args with NULL, not 0.
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 8 Aug 2018 22:45:30 +0000 (22:45 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 8 Aug 2018 22:45:30 +0000 (22:45 +0000)
commit7138c819c484e71e2a21344bc3f91c66ca7b610a
tree2b80f06a946b5e5ca774313dc796fc9ab38af62f
parent33ce7acbb02ccfd11bd22edcb667b3666f4856d2
Terminate filter_create_ext() args with NULL, not 0.

filter_create_ext() is documented to take a NULL terminated set of
arguments.  0 is promoted to an int so this would fail on 64-bit
systems if the value was not passed in a register.  On all currently
supported 64-bit architectures it is.

Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
contrib/flex/main.c