assert errno == NULL

This commit is contained in:
c9s 2014-06-01 02:13:38 +08:00
parent f670f08639
commit 4c26995e41

View file

@ -107,7 +107,10 @@ START_TEST (test_pcre_patterns_insert)
char *errstr = NULL;
r3_tree_compile(n, &errstr);
int errno;
errno = r3_tree_compile(n, &errstr);
assert(errno == 0); // no error
// r3_tree_dump(n, 0);
node *matched;