Better preservation of empty string type.
authorScott Cantor <cantor.2@osu.edu>
Wed, 28 Oct 2009 17:14:21 +0000 (17:14 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 28 Oct 2009 17:14:21 +0000 (17:14 +0000)
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
             }
         }
     }