Mercurial > hg > octave-nkf
changeset 14954:2871d5f8d922
Check for null index lists
author | Max Brister <max@2bass.com> |
---|---|
date | Fri, 15 Jun 2012 13:35:35 -0500 |
parents | 711e64a11d36 |
children | 609dcc297db5 |
files | src/pt-jit.cc |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-jit.cc +++ b/src/pt-jit.cc @@ -1911,7 +1911,10 @@ fail ("Bad number of arguments in tree_index_expression"); tree_argument_list *arg_list = args.front (); - if (arg_list && arg_list->size () != 1) + if (! arg_list) + fail ("null argument list"); + + if (arg_list->size () != 1) fail ("Bad number of arguments in arg_list"); tree_expression *tree_object = exp.expression ();