Skip to content

Commit 6260f10

Browse files
dhthwyab9rf
authored andcommitted
#5061 fix: add missing pthread_mutexattr_init()
1 parent 131a8f2 commit 6260f10

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

depends/lua/include/dfhack_llimits.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ struct lua_extra_state {
5757
#define luai_userstateopen(L) do { \
5858
luai_mutex(L) = (mutex_t*)malloc(sizeof(mutex_t)); \
5959
pthread_mutexattr_t attr; \
60+
pthread_mutexattr_init(&attr); \
6061
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); \
6162
pthread_mutex_init(luai_mutex(L), &attr); \
6263
} while (0)

0 commit comments

Comments
 (0)