This patch remove strdup use for the benefit of UT_strdup. This broke the
MacOS build again.
Hub
Index: src/af/util/xp/ut_string.cpp
===================================================================
RCS file: /u2/cvsroot/abi/src/af/util/xp/ut_string.cpp,v
retrieving revision 1.39
diff -c -r1.39 ut_string.cpp
*** src/af/util/xp/ut_string.cpp 2000/07/06 13:13:44 1.39
--- src/af/util/xp/ut_string.cpp 2000/07/12 11:52:29
***************
*** 792,798 ****
UT_DEBUGMSG(("XML parsing error %s; %s:%d\n",
XML_ErrorString(XML_GetErrorCode(parser)), __FILE__, __LINE__));
}
// TODO: who owns the storage for this?
! out = strdup(out);
if (parser) XML_ParserFree(parser);
return out;
--- 792,798 ----
UT_DEBUGMSG(("XML parsing error %s; %s:%d\n",
XML_ErrorString(XML_GetErrorCode(parser)), __FILE__, __LINE__));
}
// TODO: who owns the storage for this?
! out = UT_strdup(out);
if (parser) XML_ParserFree(parser);
return out;