Module: wine Branch: master Commit: 4f36c83fa3973ee2c4ee88cfc175ae66b98b810f URL: https://source.winehq.org/git/wine.git/?a=commit;h=4f36c83fa3973ee2c4ee88cfc...
Author: Francois Gouget fgouget@free.fr Date: Tue Oct 23 15:46:14 2018 +0200
crypt32/tests: Avoid an unneeded strlen() call.
Signed-off-by: Francois Gouget fgouget@free.fr Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/crypt32/tests/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c index 2da2a87..cea9481 100644 --- a/dlls/crypt32/tests/encode.c +++ b/dlls/crypt32/tests/encode.c @@ -1017,7 +1017,7 @@ static void compareNameValues(const CERT_NAME_VALUE *expected, static void compareRDNAttrs(const CERT_RDN_ATTR *expected, const CERT_RDN_ATTR *got) { - if (expected->pszObjId && strlen(expected->pszObjId)) + if (expected->pszObjId && *expected->pszObjId) { ok(got->pszObjId != NULL, "Expected OID %s, got NULL\n", expected->pszObjId);