From f6b138bfdd456cd79668bb9361a4a0291be37b32 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 29 Apr 2021 16:14:00 +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 282e47b..7cbefd3 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -148,7 +148,7 @@ t_device *findDevice(t_commonHandle *handle, char *deviceId) { logmsg(LOG_DEBUG, "Statement: %s", stmt); PGresult *res2 = PQexec(handle->conn, stmt); ExecStatusType execStatus = PQresultStatus(res2); - switch(PQresultStatus(execStatus)) { + switch(execStatus) { case PGRES_COMMAND_OK: logmsg(LOG_INFO, "findDevice select returns PGRES_COMMAND_OK"); break;