INN commit: trunk/tests/lib (getaddrinfo-t.c)
INN Commit
rra at isc.org
Sat Aug 27 19:18:57 UTC 2016
Date: Saturday, August 27, 2016 @ 12:18:56
Author: iulius
Revision: 10051
Fix weird !strcmp == 0 construct
Thanks to The Doctor for the report.
Modified:
trunk/tests/lib/getaddrinfo-t.c
-----------------+
getaddrinfo-t.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: getaddrinfo-t.c
===================================================================
--- getaddrinfo-t.c 2016-08-17 13:28:53 UTC (rev 10050)
+++ getaddrinfo-t.c 2016-08-27 19:18:56 UTC (rev 10051)
@@ -262,7 +262,7 @@
is_int(0, saddr->sin_port, "...port is 0");
first = ai;
for (found = 0; ai != NULL; ai = ai->ai_next) {
- if (!strcmp(ai->ai_canonname, first->ai_canonname) == 0) {
+ if (strcmp(ai->ai_canonname, first->ai_canonname) != 0) {
ok(0, "...canonname matches");
break;
}
More information about the inn-committers
mailing list