Diff

util-src/strbitop.c @ 11171:2c1583bb0e0f 0.11

util.strbitop: Remove redundant init function When you have 3 almost identical functions, you tend to edit one and then copypaste. Forgot to remove this line from the other two.
author Kim Alvefur <zash@zash.se>
date Thu, 15 Oct 2020 17:05:53 +0200
parent 11169:6dde2c9fa272
child 11172:712b2e6a09d9
line wrap: on
line diff
--- a/util-src/strbitop.c	Thu Oct 15 16:43:30 2020 +0200
+++ b/util-src/strbitop.c	Thu Oct 15 17:05:53 2020 +0200
@@ -20,8 +20,6 @@
 	const char *str_a = luaL_checklstring(L, 1, &a);
 	const char *str_b = luaL_checklstring(L, 2, &b);
 
-	luaL_buffinit(L, &buf);
-
 	if(a == 0 || b == 0) {
 		lua_settop(L, 1);
 		return 1;
@@ -44,8 +42,6 @@
 	const char *str_a = luaL_checklstring(L, 1, &a);
 	const char *str_b = luaL_checklstring(L, 2, &b);
 
-	luaL_buffinit(L, &buf);
-
 	if(a == 0 || b == 0) {
 		lua_settop(L, 1);
 		return 1;