mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-21 22:18:08 +00:00
![]() "$#" represents the number of arguments to a function. It is only defined in a function scope, where "scope" is non-NULL. Currently, if we attempt to evaluate "$#" outside a function scope, "scope" will be NULL and we will crash with a NULL pointer dereference. Do not attempt to count arguments for "$#" if "scope" is NULL. This will result in "$#" being interpreted as an empty string if evaluated outside a function scope. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> |
||
---|---|---|
.. | ||
argv.c | ||
execute.c | ||
function.c | ||
lexer.c | ||
main.c | ||
parser.y | ||
script.c | ||
yylex.l |