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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user