Some code cleanup and added .config folder to gitignore

This commit is contained in:
George Sokianos 2021-12-26 17:08:09 +00:00
parent 14d813cea1
commit 4499f1f111
2 changed files with 1 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ subprojects/lua
subprojects/libagg subprojects/libagg
sybprojects/lua sybprojects/lua
lite lite
.config/

View File

@ -434,7 +434,6 @@ static int f_list_dir(lua_State *L) {
static int f_absolute_path(lua_State *L) { static int f_absolute_path(lua_State *L) {
const char *path = luaL_checkstring(L, 1); const char *path = luaL_checkstring(L, 1);
char *res = realpath(path, NULL); char *res = realpath(path, NULL);
//printf("DBG: f_absolute_path() %s\n", res);
if (!res) { return 0; } if (!res) { return 0; }
lua_pushstring(L, res); lua_pushstring(L, res);
free(res); free(res);