Commit 727bf3ce authored by Rafaël Carré's avatar Rafaël Carré

ncurses Eject(): initialize psz_device correctly

parent d38706da
...@@ -1410,9 +1410,7 @@ static void Eject(intf_thread_t *p_intf) ...@@ -1410,9 +1410,7 @@ static void Eject(intf_thread_t *p_intf)
} }
psz_name = playlist_CurrentPlayingItem(p_playlist)->p_input->psz_name; psz_name = playlist_CurrentPlayingItem(p_playlist)->p_input->psz_name;
psz_device = psz_name ? GetDiscDevice(p_intf, psz_name) : NULL;
if (psz_name)
psz_device = GetDiscDevice(p_intf, psz_name);
PL_UNLOCK; PL_UNLOCK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment