| 3501 | } |
| 3502 | |
| 3503 | static int |
| 3504 | xmlRegExecSetErrString(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 | |
| 3519 | static void |
| 3520 | xmlFARegExecSaveInputString(xmlRegExecCtxtPtr exec, const xmlChar *value, |
no test coverage detected