Merge pull request #156 from ykaire-qti/empty-filename

Check for empty patch filenames.
This commit is contained in:
Bjorn Andersson
2025-12-03 14:57:17 -06:00
committed by GitHub

View File

@@ -80,11 +80,17 @@ int patch_execute(struct qdl_device *qdl, int (*apply)(struct qdl_device *qdl, s
return 0;
list_for_each_entry(patch, &patches, node) {
if (!patch->filename)
continue;
if (!strcmp(patch->filename, "DISK"))
count++;
}
list_for_each_entry(patch, &patches, node) {
if (!patch->filename)
continue;
if (strcmp(patch->filename, "DISK"))
continue;