summaryrefslogtreecommitdiff
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)
194 194
195RB_WRAP(current_path) 195RB_WRAP(current_path)
196{ 196{
197 const char *current_path = get_current_path(L, 1); 197 return get_current_path(L, 1);
198 if(current_path != NULL)
199 lua_pushstring(L, current_path);
200 else
201 lua_pushnil(L);
202
203 return 1;
204} 198}
205 199
206static void fill_text_message(lua_State *L, struct text_message * message, 200static void fill_text_message(lua_State *L, struct text_message * message,