fixed an endless loop due to the DCIM being a '' name

This commit is contained in:
Marcus Meissner
2022-09-09 12:26:04 +02:00
parent d1c30fa704
commit 2a5d2efaae

View File

@@ -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;