From b16be4f98fd366fda4ca905d86e300fec5726698 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 29 Apr 2021 16:32:15 +0200 Subject: [PATCH] fix --- sink/sink20169.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index 82cdc65..04165b8 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -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) {