[grilo-plugins] lua-factory: Fix the GrlNetWc options being ignored
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] lua-factory: Fix the GrlNetWc options being ignored
- Date: Mon, 31 Aug 2015 13:51:30 +0000 (UTC)
commit 5d44fb90d51c2eb5f9aee624bde8e2d1748bcddf
Author: George Sedov <radist morse gmail com>
Date: Wed Aug 5 03:58:30 2015 +0300
lua-factory: Fix the GrlNetWc options being ignored
It will be ignored if the net options are on top of the stack, which is
nearly every case.
https://bugzilla.gnome.org/show_bug.cgi?id=753141
src/lua-factory/grl-lua-library.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index 90acfa4..191b43e 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -662,7 +662,7 @@ net_wc_new_with_options(lua_State *L,
GrlNetWc *wc;
wc = grl_net_wc_new ();
- if (arg_offset < lua_gettop (L) && lua_istable (L, arg_offset)) {
+ if (arg_offset <= lua_gettop (L) && lua_istable (L, arg_offset)) {
/* Set GrlNetWc options */
lua_pushnil (L);
while (lua_next (L, arg_offset) != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]