From 9e692bcb7b814625d34715045d360602fb463bae Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 18 Sep 2009 18:43:48 +0200 Subject: [PATCH] 0 != "0" when talking about C string --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index affaf46..7a850c8 100644 --- a/src/main.c +++ b/src/main.c @@ -45,7 +45,7 @@ static int handle_request(void *data, const char *paramValues[1]; int i; - paramValues[0] = 0; + paramValues[0] = "0"; res = PQexecParams(db_conn, "SELECT secret_id FROM yubikey WHERE yubikey_id = $1", 1, /* one param */ -- 2.39.5