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
This commit is contained in:
Marcus Meissner
2008-03-06 21:51:35 +00:00
parent bb120240af
commit 9957a8a1a8

View File

@@ -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;