Mercurial > pidgin
diff libpurple/certificate.c @ 25894:a6e3cb32cdd2
Patch from Paul Aurich to add purple_strequal to help readability and simplicity of code. Ie, don't need to negate the value of strcmp, since this does a strcmp and does the negation for us
closes #7790
committer: Gary Kramlich <grim@reaperworld.com>
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 06 Jan 2009 03:39:51 +0000 |
parents | 7608cf033a88 |
children | 584063555949 |
line wrap: on
line diff
--- a/libpurple/certificate.c Fri Jan 02 22:52:17 2009 +0000 +++ b/libpurple/certificate.c Tue Jan 06 03:39:51 2009 +0000 @@ -791,7 +791,7 @@ for (cur = lst; cur; cur = cur->next) { x509_ca_element *el = cur->data; - if (el->dn && !strcmp(dn, el->dn)) { + if (purple_strequal(dn, el->dn)) { return el; } }