Index: libcfa/src/parseargs.cfa
===================================================================
--- libcfa/src/parseargs.cfa	(revision 79ae13d5c771bea08f4655712505e7fa1a8fc73a)
+++ libcfa/src/parseargs.cfa	(revision 1c893aef63e3cbbf67a354696e988219eb19aff6)
@@ -5,4 +5,6 @@
 #include <errno.h>
 #include <unistd.h>
+#include <assert.h>
+
 extern "C" {
 	#include <getopt.h>
@@ -72,4 +74,5 @@
 
 	int maxv = 'h';
+	assert( opt_count > 0 );
 	char optstring[opt_count * 3] = { '\0' };
 	{
