kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c071d64bdddacbe1b69d238e14994d666a86f7cf
parent f15558ed98aa1e91a611642529130b6f10150c4c
Author: Tobias Kortkamp <t6@users.noreply.github.com>
Date:   Mon,  5 Sep 2016 16:22:46 +0200

Fix #144. Always initialize va_list in kore_pgsql_query_params. (#146)


Diffstat:
src/pgsql.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/pgsql.c b/src/pgsql.c @@ -219,13 +219,11 @@ kore_pgsql_query_params(struct kore_pgsql *pgsql, int ret; va_list args; - if (count > 0) - va_start(args, count); + va_start(args, count); ret = kore_pgsql_v_query_params(pgsql, query, result, count, args); - if (count > 0) - va_end(args); + va_end(args); return (ret); }