Skip to content

Commit

Permalink
init some variables, as they are reported uninitialized in some paths…
Browse files Browse the repository at this point in the history
… via afl
  • Loading branch information
msmeissn committed Oct 1, 2024
1 parent cedc250 commit 9c026d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camlibs/ptp2/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ ptp_usb_getdata (PTPParams* params, PTPContainer* ptp, PTPDataHandler *handler)
uint16_t ret;
PTPUSBBulkContainer usbdata;
unsigned char *data = NULL;
uint32_t bytes_to_read, bytes_read;
uint32_t bytes_to_read = 0, bytes_read = 0;
Camera *camera = ((PTPData *)params->data)->camera;
int report_progress, progress_id = 0, do_retry = TRUE, res = GP_OK;
GPContext *context = ((PTPData *)params->data)->context;
Expand Down

0 comments on commit 9c026d6

Please sign in to comment.