diff options
Diffstat (limited to 'src/ld-lua.c')
-rw-r--r-- | src/ld-lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ld-lua.c b/src/ld-lua.c index c95a46e..297ba86 100644 --- a/src/ld-lua.c +++ b/src/ld-lua.c @@ -207,7 +207,8 @@ ld_lua_alloc (void *ud, void *ptr, size_t osize, size_t nsize) gboolean ld_lua_check_file (LdLua *self, const gchar *filename) { g_return_val_if_fail (LD_IS_LUA (self), FALSE); - return g_str_has_suffix (filename, ".lua"); + return g_str_has_suffix (filename, ".lua") + && g_file_test (filename, G_FILE_TEST_IS_REGULAR); } /** |