Skip to content

Commit 31bc26b

Browse files
zhaozgsqueek502
authored andcommitted
fix warning about -Wsometimes-uninitialized
1 parent 79f6934 commit 31bc26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static void luv_thread_release_vm(lua_State* L) {
5353
}
5454

5555
static const char* luv_getmtname(lua_State *L, int idx) {
56-
const char* name;
56+
const char* name = NULL;
5757
if (lua_getmetatable(L, idx)) {
5858
lua_getfield(L, -1, "__name");
5959
name = lua_tostring(L, -1);

0 commit comments

Comments
 (0)