]> granicus.if.org Git - nethack/commitdiff
Fix potentially uninitialized variables
authorPasi Kallinen <paxed@alt.org>
Mon, 14 Mar 2022 08:06:23 +0000 (10:06 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 14 Mar 2022 08:06:23 +0000 (10:06 +0200)
src/nhlobj.c

index eed5ffbaa6695afe72d3d0ffb55d9e6d39b2be5e..e0f807e3562b4c570addd30eb1044540e62b1e8b 100644 (file)
@@ -548,7 +548,7 @@ l_obj_bury(lua_State *L)
     int argc = lua_gettop(L);
     boolean dealloced = FALSE;
     struct _lua_obj *lo = l_obj_check(L, 1);
-    xchar x, y;
+    xchar x = 0, y = 0;
 
     if (argc == 1) {
         x = lo->obj->ox;