Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

Fix SIGSEGV due to referencing uninitialized MixMusic's .name field. #5

Closed stormc closed 9 years ago

stormc commented 9 years ago

Fix SIGSEGV due to referencing uninitialized MixMusic's .name field. Consolidated variable naming.

gdb backtrace of Segmentation Fault:

0  strlen () from /usr/lib/libc.so.6
1  ?? ()
2  lua_getfield ()
3  luaL_setmetatable ()
4  commonPushUserdata () from /usr/lib/lua/5.2/SDL/mixer.so
5  commonPush () from /usr/lib/lua/5.2/SDL/mixer.so