diff options
Diffstat (limited to 'src/ld-lua.c')
-rw-r--r-- | src/ld-lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ld-lua.c b/src/ld-lua.c index 8fadf20..54ba0c4 100644 --- a/src/ld-lua.c +++ b/src/ld-lua.c @@ -327,6 +327,7 @@ ld_lua_private_draw_cb (lua_State *L) /* Call the function do draw the symbol. */ push_cairo_object (L, data->cr); lua_pcall (L, 1, 0, 0); + return 0; } /** @@ -418,7 +419,6 @@ static int process_registration (lua_State *L) { LdLuaSymbol *symbol; - const gchar *name; gchar *human_name; int i, type, types[] = @@ -439,7 +439,7 @@ process_registration (lua_State *L) human_name = get_translation (L, 2); if (!human_name) - human_name = g_strdup (name); + human_name = g_strdup (symbol->priv->name); symbol->priv->human_name = human_name; if (!read_symbol_area (L, 3, &symbol->priv->area)) |