summaryrefslogtreecommitdiff
path: root/camlibs/spca50x
diff options
context:
space:
mode:
Diffstat (limited to 'camlibs/spca50x')
-rw-r--r--camlibs/spca50x/spca50x-flash.c1
-rw-r--r--camlibs/spca50x/spca50x-sdram.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/spca50x/spca50x-flash.c b/camlibs/spca50x/spca50x-flash.c
index 4440a18f3..da21a0d65 100644
--- a/camlibs/spca50x/spca50x-flash.c
+++ b/camlibs/spca50x/spca50x-flash.c
@@ -193,7 +193,6 @@ spca50x_flash_get_TOC(CameraPrivateLibrary *pl, int *filecount)
} else { /* all other cams with flash... */
/* read the TOC from the cam */
CHECK (gp_port_read (pl->gpdev, pl->flash_toc, toc_size));
- pl->files = NULL;
}
/* record that TOC has been updated - clear the "dirty" flag */
pl->num_files_on_flash = *filecount;
diff --git a/camlibs/spca50x/spca50x-sdram.c b/camlibs/spca50x/spca50x-sdram.c
index 64da16486..452e7534a 100644
--- a/camlibs/spca50x/spca50x-sdram.c
+++ b/camlibs/spca50x/spca50x-sdram.c
@@ -882,6 +882,7 @@ spca50x_get_FATs (CameraPrivateLibrary * lib, int dramtype)
lib->files[file_index].width = w;
lib->files[file_index].height = h;
}
+ lib->files[file_index].thumb = NULL;
file_index++;
}
p += SPCA50X_FAT_PAGE_SIZE;