diff options
-rw-r--r-- | camlibs/ptp2/library.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 8ff3d0952..b0007c596 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -7917,6 +7917,10 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, free (ximage); ximage = NULL; offset += xlen; + if (!xlen) { + GP_LOG_E ("getpartialobject loop: offset=%d, size is %d, xlen returned is 0?", offset, size); + break; + } } goto done; } |