[vlc-devel] commit: xlist: last can't be NULL here (invalidate CID 50) ( Rémi Duraffort )
git version control
git at videolan.org
Wed Oct 1 21:53:17 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 1 21:52:42 2008 +0200| [463ab1b94eeaf67cd7e7ac8bcb7fab4bc011213f] | committer: Rémi Duraffort
xlist: last can't be NULL here (invalidate CID 50)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=463ab1b94eeaf67cd7e7ac8bcb7fab4bc011213f
---
modules/codec/cmml/xlist.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/cmml/xlist.c b/modules/codec/cmml/xlist.c
index ab5b67a..bc91d15 100644
--- a/modules/codec/cmml/xlist.c
+++ b/modules/codec/cmml/xlist.c
@@ -116,7 +116,7 @@ xlist_append (XList * list, void * data)
if (list == NULL) return l;
last = xlist_tail (list);
- if (last) last->next = l;
+ last->next = l;
l->prev = last;
return list;
}
More information about the vlc-devel
mailing list