Skip to content

Commit a4e9b96

Browse files
committed
set cnt directly
1 parent d80f71b commit a4e9b96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/memcached.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static int mencode (lua_State *L) {
514514
luaL_checkany(L, 1);
515515

516516
/* prepare backrefs */
517-
memset(&br, 0, sizeof(backref_t));
517+
br.cnt = 0;
518518
lua_newtable(L);
519519
br.index = lua_gettop(L);
520520

@@ -556,7 +556,7 @@ static int mdecode (lua_State *L) {
556556
b->pos = 0;
557557

558558
/* prepare backrefs */
559-
memset(&br, 0, sizeof(backref_t));
559+
br.cnt = 0;
560560
lua_newtable(L);
561561
br.index = lua_gettop(L);
562562

0 commit comments

Comments
 (0)