]> git.sesse.net Git - nageru/commitdiff
Fix a buffer overrun when compiled without CEF.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 24 Mar 2018 16:49:52 +0000 (17:49 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 24 Mar 2018 16:49:52 +0000 (17:49 +0100)
mixer.h

diff --git a/mixer.h b/mixer.h
index 289ce45c9b5542da424942b4205ec825605d5848..adfb7cf361f24ea22554c3deab545cbd9de87ad5 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -442,7 +442,7 @@ private:
        std::pair<std::string, std::string> get_channel_color_http(unsigned channel_idx);
 
        HTTPD httpd;
-       unsigned num_cards, num_video_inputs, num_html_inputs;
+       unsigned num_cards, num_video_inputs, num_html_inputs = 0;
 
        QSurface *mixer_surface, *h264_encoder_surface, *decklink_output_surface;
        std::unique_ptr<movit::ResourcePool> resource_pool;