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

Alexandre Julliard julliard at winehq.org
Tue Oct 23 16:10:03 CDT 2018


Module: wine
Branch: master
Commit: 4f36c83fa3973ee2c4ee88cfc175ae66b98b810f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4f36c83fa3973ee2c4ee88cfc175ae66b98b810f

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue Oct 23 15:46:14 2018 +0200

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

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list