updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / lunatic-python-bzr / 2-del-segfault.patch
blob23a7310f7b61fff974d27e585f09181a80f314f8
1 --- src/luainpython.c.orig 2011-07-26 12:00:11.039211810 +0600
2 +++ src/luainpython.c 2011-07-26 12:01:58.323596282 +0600
3 @@ -226,7 +226,12 @@
5 rc = py_convert(L, attr, 0);
6 if (rc) {
7 - rc = py_convert(L, value, 0);
8 + if (value != NULL) {
9 + rc = py_convert(L, value, 0);
10 + } else {
11 + /* We're deleting an attribute. */
12 + lua_pushnil(L);
13 + }
14 if (rc) {
15 lua_settable(L, -3);
16 ret = 0;