summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 27b9dda)
raw | patch | inline | side by side (parent: 27b9dda)
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Fri, 27 Jul 2012 14:12:46 +0000 (14:12 +0000) | ||
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Fri, 27 Jul 2012 14:14:03 +0000 (14:14 +0000) |
Some data (eg, buf) must be NULL when unused, so zero everything
to make sure everything that has to be is.
to make sure everything that has to be is.
src/gstducatividdec.c | patch | blob | history |
diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index c3c8737dba0c4bc631210a38bb9acb6aa8377ccf..11673362317b8ce9a0230890307c8f999ac3f55e 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
if (G_UNLIKELY (!self->status)) {
return FALSE;
}
+ memset(self->status, 0, status_sz);
self->status->size = status_sz;
/* allocate inBufs/outBufs: */