diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-21 21:58:53 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-21 21:58:53 -0400 |
commit | 018c812fdaead2c7b9ba4794de6ff298262ddd07 (patch) | |
tree | e118a1b4f871c4e3dde39b85fdafbfb39b46d982 | |
parent | c6d2420d097cecc0d327c97980b916f5b455a0fd (diff) | |
download | fork-ledger-018c812fdaead2c7b9ba4794de6ff298262ddd07.tar.gz fork-ledger-018c812fdaead2c7b9ba4794de6ff298262ddd07.tar.bz2 fork-ledger-018c812fdaead2c7b9ba4794de6ff298262ddd07.zip |
Fixed a bug with interactive_t's arg validation
-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) { |