crypt32/tests: Avoid an unneeded strlen() call.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
425cdb6b72
commit
4f36c83fa3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue