summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r--apps/plugins/lua/rocklib.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 57165a5d15..ffd449e9d4 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -194,13 +194,7 @@ RB_WRAP(font_getstringsize)
RB_WRAP(current_path)
{
- const char *current_path = get_current_path(L, 1);
- if(current_path != NULL)
- lua_pushstring(L, current_path);
- else
- lua_pushnil(L);
-
- return 1;
+ return get_current_path(L, 1);
}
static void fill_text_message(lua_State *L, struct text_message * message,