This can happen when using --cover-art-whitelist-clr.
Unified · Split
| @@ -47,7 +47,7 @@ static int test_ext(MPOpts *opts, bstr ext) · 46 unmodified lines | ||
| 47 | 47 | |
| 48 | 48 | static int test_cover_filename(bstr fname, char **cover_files) |
| 49 | 49 | { |
| 50 | − for (int n = 0; cover_files[n]; n++) { | |
| 50 | + for (int n = 0; cover_files && cover_files[n]; n++) { | |
| 51 | 51 | if (bstrcasecmp(bstr0(cover_files[n]), fname) == 0) { |
| 52 | 52 | size_t size = n; |
| 53 | 53 | while (cover_files[++size]); |