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

Function xmlRegExecSetErrString

ThirdParty/libxml2/vtklibxml2/xmlregexp.c:3503–3517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3501}
3502
3503static int
3504xmlRegExecSetErrString(xmlRegExecCtxtPtr exec, const xmlChar *value) {
3505 if (exec->errString != NULL)
3506 xmlFree(exec->errString);
3507 if (value == NULL) {
3508 exec->errString = NULL;
3509 } else {
3510 exec->errString = xmlStrdup(value);
3511 if (exec->errString == NULL) {
3512 exec->status = XML_REGEXP_OUT_OF_MEMORY;
3513 return(-1);
3514 }
3515 }
3516 return(0);
3517}
3518
3519static void
3520xmlFARegExecSaveInputString(xmlRegExecCtxtPtr exec, const xmlChar *value,

Callers 2

xmlRegCompactPushStringFunction · 0.85

Calls 1

xmlStrdupFunction · 0.85

Tested by

no test coverage detected