From e935cf9e6294c71c88088127cc15dd23d854d5cd Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 12 May 2013 18:34:01 +0000 Subject: [PATCH] - Fixed possible NULL pointer deref in PrintDLS(). SVN r4256 (trunk) --- src/timidity/instrum_dls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timidity/instrum_dls.cpp b/src/timidity/instrum_dls.cpp index 0243461e6..fe5e4fdcd 100644 --- a/src/timidity/instrum_dls.cpp +++ b/src/timidity/instrum_dls.cpp @@ -992,7 +992,7 @@ void PrintDLS(DLS_Data *data) } printf("\n"); } - if ( data->waveList ) { + if ( data->waveList && data->ptbl ) { DWORD i; printf("Waves:\n"); for ( i = 0; i < data->ptbl->cCues; ++i ) {