Commit 4f36c83f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

crypt32/tests: Avoid an unneeded strlen() call.

parent 425cdb6b
...@@ -1017,7 +1017,7 @@ static void compareNameValues(const CERT_NAME_VALUE *expected, ...@@ -1017,7 +1017,7 @@ static void compareNameValues(const CERT_NAME_VALUE *expected,
static void compareRDNAttrs(const CERT_RDN_ATTR *expected, static void compareRDNAttrs(const CERT_RDN_ATTR *expected,
const CERT_RDN_ATTR *got) 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", ok(got->pszObjId != NULL, "Expected OID %s, got NULL\n",
expected->pszObjId); expected->pszObjId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment