len should be ret
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12559 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -138,7 +138,7 @@ ptp_ptpip_generic_read (PTPParams *params, int fd, PTPIPHeader *hdr, unsigned ch
|
||||
return PTP_RC_GeneralError;
|
||||
}
|
||||
gp_log_data ( "ptpip/generic_read", (char*)xhdr+curread, ret);
|
||||
curread += len;
|
||||
curread += ret;
|
||||
if (ret == 0) {
|
||||
gp_log (GP_LOG_ERROR, "ptpip", "End of stream after reading %d bytes of ptpipheader", ret);
|
||||
return PTP_RC_GeneralError;
|
||||
|
||||
Reference in New Issue
Block a user