]> err.no Git - yubikey-server-c/commitdiff
0 != "0" when talking about C string
authorTollef Fog Heen <tfheen@err.no>
Fri, 18 Sep 2009 16:43:48 +0000 (18:43 +0200)
committerTollef Fog Heen <tfheen@err.no>
Fri, 18 Sep 2009 16:43:48 +0000 (18:43 +0200)
src/main.c

index affaf46aa38ff514645f2eb1d56277a9f26186df..7a850c823f2fc73876757dc3942d12a7d87d6975 100644 (file)
@@ -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 */