From: Marek VavruĊĦa Date: Mon, 29 Jun 2015 23:53:25 +0000 (+0200) Subject: daemon/bindings: missing brk in wrapped lookup tables X-Git-Tag: v1.0.0-beta1~95^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e3e2156b1305701313aa5f3bd42562970e19d63;p=thirdparty%2Fknot-resolver.git daemon/bindings: missing brk in wrapped lookup tables --- diff --git a/daemon/bindings/kres.c b/daemon/bindings/kres.c index 5c4a5911a..59cc178f9 100644 --- a/daemon/bindings/kres.c +++ b/daemon/bindings/kres.c @@ -66,6 +66,7 @@ static lookup_table_t rrtype_names[] = { #define X(rc) { KNOT_RRTYPE_ ## rc, #rc }, RECORD_TYPES(X) #undef X + { 0, NULL } }; /* @@ -84,6 +85,7 @@ static lookup_table_t wire_flag_names[] = { #define X(flag, _) { WIRE_ ## flag, #flag }, WIRE_FLAGS(X) #undef X + { 0, NULL } }; static int pkt_flag(lua_State *L) diff --git a/lib/rplan.c b/lib/rplan.c index 584dc6daa..cbf3a130d 100644 --- a/lib/rplan.c +++ b/lib/rplan.c @@ -33,6 +33,7 @@ const lookup_table_t query_flag_names[] = { #define X(flag, _) { QUERY_ ## flag, #flag }, QUERY_FLAGS(X) #undef X + { 0, NULL } }; static struct kr_query *query_create(mm_ctx_t *pool, const knot_dname_t *name)