diff options
-rw-r--r-- | src/lj_clib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_clib.c b/src/lj_clib.c index ec889e51..a716254d 100644 --- a/src/lj_clib.c +++ b/src/lj_clib.c | |||
@@ -114,7 +114,7 @@ static void *clib_loadlib(lua_State *L, const char *name, int global) | |||
114 | 114 | ||
115 | static void clib_unloadlib(CLibrary *cl) | 115 | static void clib_unloadlib(CLibrary *cl) |
116 | { | 116 | { |
117 | if (!cl->handle && cl->handle != CLIB_DEFHANDLE) | 117 | if (cl->handle && cl->handle != CLIB_DEFHANDLE) |
118 | dlclose(cl->handle); | 118 | dlclose(cl->handle); |
119 | } | 119 | } |
120 | 120 | ||