[xmlsec] one more dead code removal from Simo Sorce, Red Hat



commit 6deb899553c7e41478510fdc92ea2d1f67cf92ea
Author: Aleksey Sanin <aleksey aleksey com>
Date:   Wed Jun 4 19:39:42 2014 -0700

    one more dead code removal from Simo Sorce, Red Hat

 src/nss/x509vfy.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/nss/x509vfy.c b/src/nss/x509vfy.c
index 3afd05c..9e957fe 100644
--- a/src/nss/x509vfy.c
+++ b/src/nss/x509vfy.c
@@ -606,7 +606,7 @@ xmlSecNssX509NameRead(xmlSecByte *str, int len) {
     xmlSecByte value[256];
     xmlSecByte *retval = NULL;
     xmlSecByte *p = NULL;
-    int nameLen, valueLen = 0;
+    int nameLen, valueLen;
 
     xmlSecAssert2(str != NULL, NULL);
 
@@ -693,11 +693,10 @@ xmlSecNssX509NameRead(xmlSecByte *str, int len) {
                 }
                 memcpy(p, value, valueLen);
                 p+=valueLen;
-                if (len > 0)
+                if (len > 0) {
                     *p++=',';
+                }
             }
-        } else {
-            valueLen = 0;
         }
         if(len > 0) {
             ++str; --len;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]