]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/export.c
stop treating capital cities as villages, memory leak on deadlock
[nominatim.git] / nominatim / export.c
index 8051c183ddd18183379a0313afa6f51500d2013c..9a2f57ad1f383323b887a6df55a1bc5fabd3eab3 100644 (file)
@@ -367,7 +367,7 @@ void nominatim_exportPlace(uint64_t place_id, PGconn * conn,
     // Add, modify or delete?
     if (prevQuerySet)
     {
-        if ((PQgetvalue(prevQuerySet->res, 0, 14) && strcmp(PQgetvalue(prevQuerySet->res, 0, 14), "100") == 0) || PQntuples(querySet.res))
+        if ((PQgetvalue(prevQuerySet->res, 0, 14) && strcmp(PQgetvalue(prevQuerySet->res, 0, 14), "100") == 0) || PQntuples(querySet.res) == 0)
         {
             // Delete
             if (writer_mutex) pthread_mutex_lock( writer_mutex );