diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2022-09-09 12:26:04 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2022-09-09 12:26:04 +0200 |
commit | 2a5d2efaaec0c6fc9b145ac191f4775cb2983667 (patch) | |
tree | ac296f8e4c133f9a478dc39c19c766b0290fe3a6 /libgphoto2_port | |
parent | d1c30fa704863440c09e04f692385d1c9a1d518c (diff) | |
download | libgphoto2-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.c | 2 |
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; |