From 2a5d2efaaec0c6fc9b145ac191f4775cb2983667 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 9 Sep 2022 12:26:04 +0200 Subject: fixed an endless loop due to the DCIM being a '' name --- libgphoto2_port/vusb/vcamera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgphoto2_port') 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; -- cgit v1.2.1