From: Tollef Fog Heen Date: Fri, 18 Sep 2009 16:43:48 +0000 (+0200) Subject: 0 != "0" when talking about C string X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e692bcb7b814625d34715045d360602fb463bae;p=yubikey-server-c 0 != "0" when talking about C string --- 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 */