mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3/manager/audio.c: fix possible segfault
This commit is contained in:
@@ -303,7 +303,7 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
}
|
||||
case MANAGER_GETENCODING:
|
||||
{
|
||||
if ((TrackCount > 0) && (CurrentTrack >= 0))
|
||||
if ((TrackCount > 0) && (CurrentTrack >= 0) && (Tracks[CurrentTrack].Encoding != NULL ))
|
||||
{
|
||||
*((char **)argument) = (char *)strdup(Tracks[CurrentTrack].Encoding);
|
||||
}
|
||||
|
Reference in New Issue
Block a user