Lines Matching refs:NULL

180     if (str == NULL)
189 if (uri != NULL) {
190 if (uri->scheme != NULL) xmlFree(uri->scheme);
217 if (str == NULL)
224 ((uri != NULL) && (uri->cleanup & 1) && (IS_UNWISE(cur))))
226 if (uri != NULL) {
227 if (uri->fragment != NULL)
232 uri->fragment = xmlURIUnescapeString(*str, cur - *str, NULL);
254 if (str == NULL)
260 ((uri != NULL) && (uri->cleanup & 1) && (IS_UNWISE(cur))))
262 if (uri != NULL) {
263 if (uri->query != NULL)
268 uri->query = xmlURIUnescapeString(*str, cur - *str, NULL);
273 if (uri->query_raw != NULL)
299 if (uri != NULL)
302 if (uri != NULL)
334 if (uri != NULL) {
335 if (uri->user != NULL) xmlFree(uri->user);
339 uri->user = xmlURIUnescapeString(*str, cur - *str, NULL);
447 if (uri != NULL) {
448 if (uri->authority != NULL) xmlFree(uri->authority);
449 uri->authority = NULL;
450 if (uri->server != NULL) xmlFree(uri->server);
455 uri->server = xmlURIUnescapeString(host, cur - host, NULL);
457 uri->server = NULL;
559 if (uri != NULL) {
560 if (uri->path != NULL) xmlFree(uri->path);
565 uri->path = xmlURIUnescapeString(*str, cur - *str, NULL);
567 uri->path = NULL;
605 if (uri != NULL) {
606 if (uri->path != NULL) xmlFree(uri->path);
611 uri->path = xmlURIUnescapeString(*str, cur - *str, NULL);
613 uri->path = NULL;
647 if (uri != NULL) {
648 if (uri->path != NULL) xmlFree(uri->path);
653 uri->path = xmlURIUnescapeString(*str, cur - *str, NULL);
655 uri->path = NULL;
689 if (uri != NULL) {
690 if (uri->path != NULL) xmlFree(uri->path);
695 uri->path = xmlURIUnescapeString(*str, cur - *str, NULL);
697 uri->path = NULL;
743 if (uri != NULL) {
744 if (uri->path != NULL) xmlFree(uri->path);
745 uri->path = NULL;
786 if (uri != NULL) {
787 if (uri->path != NULL) xmlFree(uri->path);
788 uri->path = NULL;
867 if (str == NULL)
895 * Returns a newly built xmlURIPtr or NULL in case of error
902 if (str == NULL)
903 return(NULL);
905 if (uri != NULL) {
909 return(NULL);
941 * Returns a newly built xmlURIPtr or NULL in case of error
948 if (str == NULL)
949 return(NULL);
951 if (uri != NULL) {
958 return(NULL);
975 * Returns the new structure or NULL in case of error
982 if (ret == NULL) {
985 return(NULL);
1001 xmlChar *ret = NULL;
1007 if (uri == NULL) return(NULL);
1012 if (ret == NULL) {
1015 return(NULL);
1019 if (uri->scheme != NULL) {
1025 if (temp == NULL) {
1029 return(NULL);
1038 if (temp == NULL) {
1042 return(NULL);
1048 if (uri->opaque != NULL) {
1054 if (temp == NULL) {
1058 return(NULL);
1073 if (uri->server != NULL) {
1077 if (temp == NULL) {
1081 return(NULL);
1087 if (uri->user != NULL) {
1094 if (temp == NULL) {
1098 return(NULL);
1120 if (temp == NULL) {
1124 return(NULL);
1136 if (temp == NULL) {
1140 return(NULL);
1151 if (temp == NULL) {
1155 return(NULL);
1161 } else if (uri->authority != NULL) {
1166 if (temp == NULL) {
1170 return(NULL);
1182 if (temp == NULL) {
1186 return(NULL);
1203 } else if (uri->scheme != NULL) {
1208 if (temp == NULL) {
1212 return(NULL);
1219 if (uri->path != NULL) {
1225 if ((uri->scheme != NULL) &&
1235 if (ret == NULL) {
1238 return(NULL);
1250 if (temp == NULL) {
1254 return(NULL);
1272 if (uri->query_raw != NULL) {
1277 if (temp == NULL) {
1281 return(NULL);
1292 if (temp == NULL) {
1296 return(NULL);
1302 } else if (uri->query != NULL) {
1307 if (temp == NULL) {
1311 return(NULL);
1322 if (temp == NULL) {
1326 return(NULL);
1342 if (uri->fragment != NULL) {
1347 if (temp == NULL) {
1351 return(NULL);
1362 if (temp == NULL) {
1366 return(NULL);
1384 if (temp == NULL) {
1388 return(NULL);
1408 if (out != NULL) {
1422 if (uri == NULL) return;
1424 if (uri->scheme != NULL) xmlFree(uri->scheme);
1425 uri->scheme = NULL;
1426 if (uri->server != NULL) xmlFree(uri->server);
1427 uri->server = NULL;
1428 if (uri->user != NULL) xmlFree(uri->user);
1429 uri->user = NULL;
1430 if (uri->path != NULL) xmlFree(uri->path);
1431 uri->path = NULL;
1432 if (uri->fragment != NULL) xmlFree(uri->fragment);
1433 uri->fragment = NULL;
1434 if (uri->opaque != NULL) xmlFree(uri->opaque);
1435 uri->opaque = NULL;
1436 if (uri->authority != NULL) xmlFree(uri->authority);
1437 uri->authority = NULL;
1438 if (uri->query != NULL) xmlFree(uri->query);
1439 uri->query = NULL;
1440 if (uri->query_raw != NULL) xmlFree(uri->query_raw);
1441 uri->query_raw = NULL;
1452 if (uri == NULL) return;
1454 if (uri->scheme != NULL) xmlFree(uri->scheme);
1455 if (uri->server != NULL) xmlFree(uri->server);
1456 if (uri->user != NULL) xmlFree(uri->user);
1457 if (uri->path != NULL) xmlFree(uri->path);
1458 if (uri->fragment != NULL) xmlFree(uri->fragment);
1459 if (uri->opaque != NULL) xmlFree(uri->opaque);
1460 if (uri->authority != NULL) xmlFree(uri->authority);
1461 if (uri->query != NULL) xmlFree(uri->query);
1462 if (uri->query_raw != NULL) xmlFree(uri->query_raw);
1487 if (path == NULL)
1679 * Returns a copy of the string, but unescaped, will return NULL only in case
1687 if (str == NULL)
1688 return(NULL);
1690 if (len < 0) return(NULL);
1692 if (target == NULL) {
1694 if (ret == NULL) {
1697 return(NULL);
1739 * Returns a new escaped string or NULL in case of error.
1749 if (str == NULL)
1750 return(NULL);
1754 if (!(len > 0)) return(NULL);
1758 if (ret == NULL) {
1761 return(NULL);
1769 if (temp == NULL) {
1773 return(NULL);
1821 xmlChar *ret, *segment = NULL;
1829 return NULL; } \
1831 if (str == NULL)
1832 return (NULL);
1835 if (uri != NULL) {
1843 return (NULL);
1848 return NULL;
1850 ret = NULL;
1881 if (uri->user == NULL)
1955 * Returns a new URI string (to be freed by the caller) or NULL in case
1960 xmlChar *val = NULL;
1962 xmlURIPtr ref = NULL;
1963 xmlURIPtr bas = NULL;
1964 xmlURIPtr res = NULL;
1974 if (URI == NULL)
1979 if (ref == NULL)
1988 if ((ref != NULL) && (ref->scheme != NULL)) {
1995 if (base == NULL)
1999 if (bas == NULL)
2008 if (ref == NULL) {
2012 if (bas->fragment != NULL) {
2014 bas->fragment = NULL;
2033 if (res == NULL)
2035 if ((ref->scheme == NULL) && (ref->path == NULL) &&
2036 ((ref->authority == NULL) && (ref->server == NULL))) {
2037 if (bas->scheme != NULL)
2039 if (bas->authority != NULL)
2041 else if (bas->server != NULL) {
2043 if (bas->user != NULL)
2047 if (bas->path != NULL)
2049 if (ref->query_raw != NULL)
2051 else if (ref->query != NULL)
2053 else if (bas->query_raw != NULL)
2055 else if (bas->query != NULL)
2057 if (ref->fragment != NULL)
2068 if (ref->scheme != NULL) {
2072 if (bas->scheme != NULL)
2075 if (ref->query_raw != NULL)
2077 else if (ref->query != NULL)
2079 if (ref->fragment != NULL)
2089 if ((ref->authority != NULL) || (ref->server != NULL)) {
2090 if (ref->authority != NULL)
2094 if (ref->user != NULL)
2098 if (ref->path != NULL)
2102 if (bas->authority != NULL)
2104 else if (bas->server != NULL) {
2106 if (bas->user != NULL)
2115 if ((ref->path != NULL) && (ref->path[0] == '/')) {
2130 if (ref->path != NULL)
2132 if (bas->path != NULL)
2135 if (res->path == NULL) {
2149 if (bas->path != NULL) {
2169 if (ref->path != NULL && ref->path[0] != 0) {
2174 if ((out == 0) && (bas->server != NULL))
2197 if (ref != NULL)
2199 if (bas != NULL)
2201 if (res != NULL)
2235 * Returns a new URI string (to be freed by the caller) or NULL in case
2241 xmlChar *val = NULL;
2247 xmlURIPtr ref = NULL;
2248 xmlURIPtr bas = NULL;
2252 if ((URI == NULL) || (*URI == 0))
2253 return NULL;
2259 if (ref == NULL)
2260 return NULL;
2265 goto done; /* Error in URI, return NULL */
2272 if ((base == NULL) || (*base == 0)) {
2277 if (bas == NULL)
2282 goto done; /* Error in base, return NULL */
2290 if ((ref->scheme != NULL) &&
2291 ((bas->scheme == NULL) ||
2301 if (bas->path == NULL) {
2305 if (ref->path == NULL) {
2316 if (bas->path == NULL) {
2317 if (ref->path != NULL) {
2327 if (ref->path == NULL) {
2332 uptr = NULL;
2385 if (uptr != NULL)
2397 if (val == NULL) {
2414 if (uptr != NULL) {
2438 ref->path = NULL;
2439 if (ref != NULL)
2441 if (bas != NULL)
2456 * argument is NULL, the function returns NULL.
2459 ((p != NULL) && \
2473 xmlChar *p = NULL;
2479 if (path == NULL)
2480 return(NULL);
2486 if ((uri = xmlParseURI((const char *) path)) != NULL) {
2493 if (absuri != NULL) {
2516 if (escURI != NULL) {
2520 if (uri != NULL) {
2534 if (uri == NULL) { /* Guard against 'out of memory' */
2535 return(NULL);
2544 if (uri->path == NULL) {
2546 return(NULL);
2554 if (uri->path == NULL) {
2556 return(NULL);
2567 if (uri->scheme == NULL) {
2589 * or the argument is NULL, the function returns NULL.
2598 if (path == NULL)
2599 return(NULL);
2601 if ((uri = xmlParseURI((const char *) path)) != NULL) {
2606 if (cal == NULL)
2607 return(NULL);
2612 if ((uri = xmlParseURI((const char *) cal)) != NULL) {