From 26f6f80a53307569c95a732a0304215376d8bc5f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 18 Nov 2014 02:23:49 -0500 Subject: Fix incredibly unlikely NULL pointer dereference. --- libs/ardour/sndfilesource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 5f1b31c640..9af2b56056 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -643,7 +643,7 @@ SndFileSource::setup_broadcast_info (framepos_t /*when*/, struct tm& now, time_t return -1; } - if (!(_flags & Broadcast)) { + if (!(_flags & Broadcast) || !_broadcast_info) { return 0; } -- cgit v1.2.3