| 199 | static int load_trace = 0; |
| 200 | |
| 201 | static |
| 202 | void parsePath(const xmlChar *path) { |
| 203 | const xmlChar *cur; |
| 204 | |
| 205 | if (path == NULL) |
| 206 | return; |
| 207 | while (*path != 0) { |
| 208 | if (nbpaths >= MAX_PATHS) { |
| 209 | fprintf(ERR_STREAM, "MAX_PATHS reached: too many paths\n"); |
| 210 | return; |
| 211 | } |
| 212 | cur = path; |
| 213 | while ((*cur == ' ') || (*cur == PATH_SEPARATOR)) |
| 214 | cur++; |
| 215 | path = cur; |
| 216 | while ((*cur != 0) && (*cur != ' ') && (*cur != PATH_SEPARATOR)) |
| 217 | cur++; |
| 218 | if (cur != path) { |
| 219 | paths[nbpaths] = xmlStrndup(path, cur - path); |
| 220 | if (paths[nbpaths] != NULL) |
| 221 | nbpaths++; |
| 222 | path = cur; |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | static xmlExternalEntityLoader defaultEntityLoader = NULL; |
| 228 |
nothing calls this directly
no test coverage detected