diff options
author | David Reid <dreid@apache.org> | 2004-06-21 16:08:57 +0000 |
---|---|---|
committer | David Reid <dreid@apache.org> | 2004-06-21 16:08:57 +0000 |
commit | e7449e3979642e9cbaf9c3cf3d9e58858649d82a (patch) | |
tree | 6705371d4b415dbda6e87e9376eaebd76cc91ad8 /test/abts.c | |
parent | 03300e5accb739657b550b7e28d2d80747c2b14b (diff) | |
download | apr-e7449e3979642e9cbaf9c3cf3d9e58858649d82a.tar.gz |
Bring in the patch from apr-util that allows for NULL strings to be passed
into abts_str_equal.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/abts.c')
-rw-r--r-- | test/abts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/abts.c b/test/abts.c index 18c6bc646..d10dda4d9 100644 --- a/test/abts.c +++ b/test/abts.c @@ -259,7 +259,9 @@ void abts_str_equal(abts_case *tc, const char *expected, const char *actual, int update_status(); if (tc->failed) return; - if (!strcmp(expected, actual)) return; + if (!expected && !actual) return; + if (expected && actual) + if (!strcmp(expected, actual)) return; tc->failed = TRUE; if (verbose) { |