From 0362d902221ac030558fa83a4644521018a577c5 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sun, 17 Mar 2013 19:07:56 -0400 Subject: [PATCH] fixed potential indexing into an empty list --- sdk/plugins/stream.cpp | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/sdk/plugins/stream.cpp b/sdk/plugins/stream.cpp index 5ea157a..b0b0eeb 100644 --- a/sdk/plugins/stream.cpp +++ b/sdk/plugins/stream.cpp @@ -680,6 +680,7 @@ public: stage_variance.append(transform->timeVarying()); thread_count += transform->timeVarying() ? 1 : threads_per_multi_stage; } + if (transforms.isEmpty()) return; // Set up the thread pool, 1 stage for each transform, as well as first // and last stages, but the first stage is operated by the thread that -- libgit2 0.21.4