git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b725e9e
)
Skip strcmp() on 2 NULL pointers.
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 17 Apr 2008 09:22:23 +0000
(11:22 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sun, 14 Sep 2008 17:17:19 +0000
(19:17 +0200)
Andrew Bartlett
(cherry picked from commit
7b9a647ebbbe9ec9e1b82b42e3a8916396f91273
)
(This used to be commit
60f7bdac64e32ea39099ababacca6f8a2b780ecb
)
source3/lib/talloc/testsuite.c
patch
|
blob
|
history
diff --git
a/source3/lib/talloc/testsuite.c
b/source3/lib/talloc/testsuite.c
index fedbda95aac23dbb86d2701a43385df04dbb023e..3f06eee5667d4b285afdcdbf6c1c986c297c6815 100644
(file)
--- a/
source3/lib/talloc/testsuite.c
+++ b/
source3/lib/talloc/testsuite.c
@@
-48,7
+48,8
@@
static double timeval_elapsed(struct timeval *tv)
}
#define torture_assert_str_equal(test, arg1, arg2, desc) \
- if (strcmp(arg1, arg2)) { \
+ if (arg1 == NULL && arg2 == NULL) { \
+ } else if (strcmp(arg1, arg2)) { \
printf("failure: %s [\n%s: Expected %s, got %s: %s\n]\n", \
test, __location__, arg1, arg2, desc); \
return false; \