brianp 02/05/09 10:00:25
Modified: test teststrmatch.c
Log:
Fix bad cut-and-paste of error handling
Revision Changes Path
1.2 +3 -3 apr-util/test/teststrmatch.c
Index: teststrmatch.c
===================================================================
RCS file: /home/cvs/apr-util/test/teststrmatch.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- teststrmatch.c 9 May 2002 16:35:59 -0000 1.1
+++ teststrmatch.c 9 May 2002 17:00:25 -0000 1.2
@@ -86,17 +86,17 @@
exit(1);
}
pattern_nocase = apr_strmatch_precompile(pool, "pattern", 0);
- if (!pattern) {
+ if (!pattern_nocase) {
printf("FAILED\n");
exit(1);
}
pattern_onechar = apr_strmatch_precompile(pool, "g", 0);
- if (!pattern) {
+ if (!pattern_onechar) {
printf("FAILED\n");
exit(1);
}
pattern_zero = apr_strmatch_precompile(pool, "", 0);
- if (!pattern) {
+ if (!pattern_zero) {
printf("FAILED\n");
exit(1);
}