From 018c812fdaead2c7b9ba4794de6ff298262ddd07 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Feb 2009 21:58:53 -0400 Subject: Fixed a bug with interactive_t's arg validation --- src/interactive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3