From 9957a8a1a8f5bde4e0cea45937b3dda2b69fbed0 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 6 Mar 2008 21:51:35 +0000 Subject: [PATCH] initialize passed back pointer areas to avoid leaving old stuff in. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10980 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp2/ptp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camlibs/ptp2/ptp.c b/camlibs/ptp2/ptp.c index 25d38ae92..c25d60456 100644 --- a/camlibs/ptp2/ptp.c +++ b/camlibs/ptp2/ptp.c @@ -1812,6 +1812,8 @@ ptp_canon_eos_getevent (PTPParams* params, PTPCanon_changes_entry **entries, int unsigned int size = 0; unsigned char *data = NULL; + *nrofentries = 0; + *entries = NULL; PTP_CNT_INIT(ptp); ptp.Code = PTP_OC_CANON_EOS_GetEvent; ptp.Nparam = 0;