if (rc != URI_ERRNO_OK) {
msg_info ("url_parse_html: error while parsing url %s: %s", url_str, url_strerror (rc));
}
- else {
+ if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST) {
TAILQ_INSERT_TAIL (&task->urls, new, next);
}
}
if (rc != URI_ERRNO_OK) {
msg_info ("url_parse_html: error while parsing url %s: %s", url_str, url_strerror (rc));
}
- else {
+ if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST) {
TAILQ_INSERT_TAIL (&task->urls, new, next);
}
}