git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65e939c
)
small fixes.
author
kramm
<kramm>
Sat, 18 Dec 2004 16:55:24 +0000
(16:55 +0000)
committer
kramm
<kramm>
Sat, 18 Dec 2004 16:55:24 +0000
(16:55 +0000)
lib/python/taglist.c
patch
|
blob
|
history
diff --git
a/lib/python/taglist.c
b/lib/python/taglist.c
index
44d5c23
..
f6a0932
100644
(file)
--- a/
lib/python/taglist.c
+++ b/
lib/python/taglist.c
@@
-286,8
+286,10
@@
static PyObject * taglist_item(PyObject * self, int index)
{
TagListObject*taglist = (TagListObject*)self;
PyObject*tag;
- mylog(" %08x(%d) taglist_item(%d)", (int)self, self->ob_refcnt, index);
tag = PyList_GetItem(taglist->taglist, index);
+ if(!tag)
+ return 0;
+ mylog(" %08x(%d) taglist_item(%d): %08x", (int)self, self->ob_refcnt, index, tag);
Py_INCREF(tag);
return tag;
}