diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2010-12-05 15:21:00 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2010-12-05 15:21:00 +0100 |
commit | 1d956964e2d6b183f65620505831527a8089f697 (patch) | |
tree | 4a92cb413c7eff8adadd8e83ee9053295bfefc28 /src/ld-lua.c | |
parent | 147cf2977ab29d1ab9b9d776ceff5b73a10ac297 (diff) | |
download | logdiag-1d956964e2d6b183f65620505831527a8089f697.tar.gz logdiag-1d956964e2d6b183f65620505831527a8089f697.tar.xz logdiag-1d956964e2d6b183f65620505831527a8089f697.zip |
Random fixes.
Mostly found by -Wextra.
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)) |