mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Merge pull request #632 from melvyn-sopacua/libxml2-fixes
Fix warnings:
This commit is contained in:
@@ -486,7 +486,7 @@ void EndElement(xmlTextReaderPtr reader, const xmlChar *name)
|
|||||||
}
|
}
|
||||||
paramValues[7] = (const char *)featureExtraTagString;
|
paramValues[7] = (const char *)featureExtraTagString;
|
||||||
|
|
||||||
if (strlen(feature.parentPlaceID) == 0)
|
if (xmlStrlen(feature.parentPlaceID) == 0)
|
||||||
paramValues[8] = "0";
|
paramValues[8] = "0";
|
||||||
else
|
else
|
||||||
paramValues[8] = (const char *)feature.parentPlaceID;
|
paramValues[8] = (const char *)feature.parentPlaceID;
|
||||||
@@ -541,10 +541,10 @@ void EndElement(xmlTextReaderPtr reader, const xmlChar *name)
|
|||||||
|
|
||||||
if (featureNameLines)
|
if (featureNameLines)
|
||||||
{
|
{
|
||||||
if (strlen(feature.parentPlaceID) > 0 && featureAddressLines == 0)
|
if (xmlStrlen(feature.parentPlaceID) > 0 && featureAddressLines == 0)
|
||||||
{
|
{
|
||||||
paramValues[0] = (const char *)place_id;
|
paramValues[0] = (const char *)place_id;
|
||||||
paramValues[1] = feature.parentPlaceID;
|
paramValues[1] = (const char *)feature.parentPlaceID;
|
||||||
if (verbose) fprintf(stderr, "search_name_from_parent_insert: INSERT %s %s\n", paramValues[0], paramValues[1]);
|
if (verbose) fprintf(stderr, "search_name_from_parent_insert: INSERT %s %s\n", paramValues[0], paramValues[1]);
|
||||||
res = PQexecPrepared(conn, "search_name_from_parent_insert", 2, paramValues, NULL, NULL, 0);
|
res = PQexecPrepared(conn, "search_name_from_parent_insert", 2, paramValues, NULL, NULL, 0);
|
||||||
if (PQresultStatus(res) != PGRES_COMMAND_OK)
|
if (PQresultStatus(res) != PGRES_COMMAND_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user