summaryrefslogtreecommitdiff
path: root/libgphoto2_port
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2022-09-09 12:26:04 +0200
committerMarcus Meissner <marcus@jet.franken.de>2022-09-09 12:26:04 +0200
commit2a5d2efaaec0c6fc9b145ac191f4775cb2983667 (patch)
treeac296f8e4c133f9a478dc39c19c766b0290fe3a6 /libgphoto2_port
parentd1c30fa704863440c09e04f692385d1c9a1d518c (diff)
downloadlibgphoto2-2a5d2efaaec0c6fc9b145ac191f4775cb2983667.tar.gz
fixed an endless loop due to the DCIM being a '' name
Diffstat (limited to 'libgphoto2_port')
-rw-r--r--libgphoto2_port/vusb/vcamera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c
index 8f18e7404..4bc4e514f 100644
--- a/libgphoto2_port/vusb/vcamera.c
+++ b/libgphoto2_port/vusb/vcamera.c
@@ -445,7 +445,7 @@ read_tree(char *path) {
}
if (!dcim) {
dcim = malloc(sizeof(struct ptp_dirent));
- dcim->name = strdup("");
+ dcim->name = strdup("DCIM");
dcim->fsname = strdup(path);
dcim->id = ptp_objectid++;
dcim->next = first_dirent;