- if (display_value != NULL)
- duplicateBuffer(buf, display_value);
+ valueBuf.value = (void *)str.c_str();
+ valueBuf.length = str.length();
+
+ const SimpleAttribute *simpleAttr =
+ dynamic_cast<const SimpleAttribute *>(shibAttr);
+ const ScopedAttribute *scopedAttr =
+ dynamic_cast<const ScopedAttribute *>(shibAttr);
+ if (simpleAttr != NULL || scopedAttr != NULL)
+ displayValueBuf = valueBuf;