]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/bindings/impl.h: replace asserts
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 24 Mar 2021 16:44:41 +0000 (17:44 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 25 May 2021 10:44:36 +0000 (12:44 +0200)
daemon/bindings/impl.h

index 9c9e8937c95192eefbf1696da1e522e765cd5197..7003d2e24c95bd7e4d75af2143f35a701683439d 100644 (file)
@@ -84,7 +84,7 @@ static inline int execute_callback(lua_State *L, int argc)
 static inline void lua_pushpointer(lua_State *L, void *p)
 {
        void *addr = lua_newuserdata(L, sizeof(void *));
-       assert(addr);
+       kr_require(addr);
        memcpy(addr, &p, sizeof(void *));
 }