mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
Merge pull request #156 from ykaire-qti/empty-filename
Check for empty patch filenames.
This commit is contained in:
6
patch.c
6
patch.c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user