MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlResetError

Function xmlResetError

ThirdParty/libxml2/vtklibxml2/error.c:935–954  ·  view source on GitHub ↗

* xmlResetError: * @err: pointer to the error. * * Cleanup the error. */

Source from the content-addressed store, hash-verified

933 * Cleanup the error.
934 */
935void
936xmlResetError(xmlErrorPtr err)
937{
938 if (err == NULL)
939 return;
940 if (err->code == XML_ERR_OK)
941 return;
942 if (err->message != NULL)
943 xmlFree(err->message);
944 if (err->file != NULL)
945 xmlFree(err->file);
946 if (err->str1 != NULL)
947 xmlFree(err->str1);
948 if (err->str2 != NULL)
949 xmlFree(err->str2);
950 if (err->str3 != NULL)
951 xmlFree(err->str3);
952 memset(err, 0, sizeof(xmlError));
953 err->code = XML_ERR_OK;
954}
955
956/**
957 * xmlResetLastError:

Callers 14

xmlVSetErrorFunction · 0.85
xmlRaiseMemoryErrorFunction · 0.85
xmlResetLastErrorFunction · 0.85
xmlCtxtResetLastErrorFunction · 0.85
xmlXPathErrFunction · 0.85
xmlXPathFreeContextFunction · 0.85
xmlXPathEvalFunction · 0.85
htmlCtxtResetFunction · 0.85
LIBXML_ATTR_FORMATFunction · 0.85
xmlXPtrEvalFunction · 0.85
xmlCtxtResetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected