diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-21 16:08:57 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-21 16:08:57 +0000 |
commit | 070eb0f4b41074d49aa10643d3ca9c87f026f0ec (patch) | |
tree | 6705371d4b415dbda6e87e9376eaebd76cc91ad8 | |
parent | a4b39a647870dee329c50dd4cf17901b2470798e (diff) | |
download | libapr-070eb0f4b41074d49aa10643d3ca9c87f026f0ec.tar.gz |
Bring in the patch from apr-util that allows for NULL strings to be passed
into abts_str_equal.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65210 13f79535-47bb-0310-9956-ffa450edef68
-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) { |