bug fixes

This commit is contained in:
Dennis Eichhorn 2023-12-08 21:52:34 +00:00
parent 748e82358d
commit b34004c1cb
3 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ namespace DataStorage
if (paramValues != NULL) {
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
// @todo: sqlite3_bind_int(res, 1, 3);
// @todo sqlite3_bind_int(res, 1, 3);
} else {
status = sqlite3_prepare_v2((sqlite3 *) this->con, stmt, -1, &res, 0);
}

View File

@ -247,7 +247,7 @@ namespace Utils
free(dm);
// @todo: do we even need to realloc?
// @todo do we even need to realloc?
char **diffValuesT = (char **) realloc(diffValues, diffIndex * sizeof(char *));
if (!diffValuesT) {
free(diffValues);

View File

@ -182,7 +182,7 @@ namespace Utils
if(true) {
xmlChar *orig = href;
// @todo: consider base= tag which has an impact on relative links
// @todo consider base= tag which has an impact on relative links
href = xmlBuildURI(href, (xmlChar *) url);
xmlFree(orig);
}
@ -259,10 +259,10 @@ namespace Utils
char *ctype;
curl_easy_getinfo(e, CURLINFO_CONTENT_TYPE, &ctype);
// @todo: save file (how to handle base resources, either pass base url or save based on url?)
// @todo save file (how to handle base resources, either pass base url or save based on url?)
if (ctype != NULL && strlen(ctype) > 10 && strstr(ctype, "text/html")) {
// @todo: check limits
// @todo check limits
left += follow_links(cm, page, url, &left);
}
}