From 1d956964e2d6b183f65620505831527a8089f697 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 5 Dec 2010 15:21:00 +0100 Subject: Random fixes. Mostly found by -Wextra. --- src/ld-lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ld-lua.c') 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)) -- cgit v1.2.3-54-g00ecf