telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit b650c3bfad410fffa4cfeebf88eb17ff77625720
parent db29ea70406785d70e2228e68b18c4b1a660d96b
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 26 Oct 2018 21:06:37 +0200

va_start() must take the last argument before variadic parameters. Pointed out by Joris Vink, thanks!

Diffstat:
Msrc/location.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/location.c b/src/location.c @@ -59,7 +59,7 @@ void getdata(struct kore_buf *json, MMDB_lookup_result_s *lookup, MMDB_entry_data_s *entry_data, char *field, int type, ...) { va_list keys; - va_start(keys, entry_data); + va_start(keys, type); MMDB_vget_value(&lookup->entry, entry_data, keys); if (entry_data->has_data) {