correct argument count

This commit is contained in:
Enno Rehling 2015-10-14 18:40:37 +02:00
parent 5d192cb4c9
commit 47eee29813
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ static suite *suites;
static void add_suite(CuSuite *(*csuite)(void), const char *name, int argc, char *argv[]) { static void add_suite(CuSuite *(*csuite)(void), const char *name, int argc, char *argv[]) {
suite *s = 0; suite *s = 0;
if (argc > 1) { if (argc > 0) {
int i; int i;
for (i = 0; i != argc; ++i) { for (i = 0; i != argc; ++i) {
if (strcmp(argv[i], name) == 0) { if (strcmp(argv[i], name) == 0) {