Better preservation of empty string type.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 28 Oct 2009 17:14:21 +0000 (17:14 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 28 Oct 2009 17:14:21 +0000 (17:14 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3146 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/remoting/impl/ddf.cpp

index d134c5a..81122cf 100644 (file)
@@ -1016,8 +1016,7 @@ DDF deserialize(DOMElement* root, bool lowercase)
             }
             else {
                 char* val = toUTF8(child->getNodeValue(), true);    // use malloc
-                if (val)
-                    obj.string(val, false); // don't re-copy the string
+                obj.string(val, false); // don't re-copy the string
             }
         }
     }