diff options
Diffstat (limited to 'src/interactive.cc')
-rw-r--r-- | src/interactive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interactive.cc b/src/interactive.cc index 3e2d6d5e..eeb9b53f 100644 --- a/src/interactive.cc +++ b/src/interactive.cc @@ -156,7 +156,7 @@ void interactive_t::verify_arguments() const "Expected " << label << " for argument " << offset << ", but received " << vlabel); } - else if (! optional && ! next_arg) { + else if (*p && ! optional && ! next_arg) { throw_(std::logic_error, "Too few arguments to function"); } else if (! *p && next_arg) { |