From 4f36c83fa3973ee2c4ee88cfc175ae66b98b810f Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 23 Oct 2018 15:46:14 +0200 Subject: [PATCH] crypt32/tests: Avoid an unneeded strlen() call. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- 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 2da2a87b081..cea948151cd 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);