playlist_viewer: Use 'NULL' instead of '0' when calling playlist_viewer_init
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sun, 17 May 2026 16:47:27 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit d97e4425c6e91f42c0cc51a4fc35189df5417125 Author: Solomon Peachy <[email protected]> Date: Sun May 17 16:43:53 2026 -0400 playlist_viewer: Use 'NULL' instead of '0' when calling playlist_viewer_init For some reason this resolves an apparently-unrelated warning about a const violation inside playlist_viewer_init(). Change-Id: Ifd4eb008335876707abe64da04a3afd0d1c46633 diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 8e28606652..2e0740a6fe 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -1291,7 +1291,7 @@ bool search_playlist(void) struct gui_synclist playlist_lists; struct playlist_track_info track; - if (!playlist_viewer_init(&viewer, 0, false, NULL)) + if (!playlist_viewer_init(&viewer, NULL, false, NULL)) return ret; if (kbd_input(search_str, sizeof(search_str), NULL) < 0) return ret; -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs