Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
25893:991796129108 | 25894:a6e3cb32cdd2 |
---|---|
789 { | 789 { |
790 GList *cur; | 790 GList *cur; |
791 | 791 |
792 for (cur = lst; cur; cur = cur->next) { | 792 for (cur = lst; cur; cur = cur->next) { |
793 x509_ca_element *el = cur->data; | 793 x509_ca_element *el = cur->data; |
794 if (el->dn && !strcmp(dn, el->dn)) { | 794 if (purple_strequal(dn, el->dn)) { |
795 return el; | 795 return el; |
796 } | 796 } |
797 } | 797 } |
798 return NULL; | 798 return NULL; |
799 } | 799 } |