]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/bindings: missing brk in wrapped lookup tables
authorMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 29 Jun 2015 23:53:25 +0000 (01:53 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 30 Jun 2015 21:42:09 +0000 (23:42 +0200)
daemon/bindings/kres.c
lib/rplan.c

index 5c4a5911ad4a36cfe92a1e1170fa4f4fa3f799eb..59cc178f949aa0a094015ce963ce37fe7bb3e8f4 100644 (file)
@@ -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)
index 584dc6daa4fc0d2c4e66b6bfdce400072af5c2dc..cbf3a130d42e374737628b61dc4347b2f92320b7 100644 (file)
@@ -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)