This commit is contained in:
2021-04-29 16:32:15 +02:00
parent e0699369b5
commit b16be4f98f

View File

@ -151,7 +151,7 @@ t_device *findDevice(t_commonHandle *handle, char *deviceId) {
if (execStatus != PGRES_TUPLES_OK) {
logmsg(LOG_INFO, "findDevice query fails, database returns %s", PQresStatus(execStatus));
} else {
int ntuples = PQtuples(res2);
int ntuples = PQntuples(res2);
if (ntuples == 0) {
logmsg(LOG_ERR, "no device found");
} else if (ntuples == 1) {