chiark / gitweb /
assert our arguments
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 7 Mar 2014 18:45:51 +0000 (18:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 7 Mar 2014 18:45:51 +0000 (18:45 +0000)
main.c

diff --git a/main.c b/main.c
index b972460..5380737 100644 (file)
--- a/main.c
+++ b/main.c
@@ -272,6 +272,7 @@ static void iterate(void) {
 }
 
 int main(int argc, char **argv) {
+  assert(argc==3);
   n = atoi(argv[1]);
   m = atoi(argv[2]);
   prep();