]> git.sesse.net Git - movit/commitdiff
Another case of NULL initialization to keep Coverity happy.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 20 Jan 2013 00:43:25 +0000 (01:43 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 20 Jan 2013 00:43:25 +0000 (01:43 +0100)
effect_chain_test.cpp

index 614bffc3dd5ecfe08143062af0ebda767ffb9970..1b427a7dafbcffbecacbba007ec546341652f592 100644 (file)
@@ -400,7 +400,7 @@ private:
 // which outputs blank alpha.
 class RewritingToBlueInput : public Input {
 public:
-       RewritingToBlueInput() { register_int("needs_mipmaps", &needs_mipmaps); }
+       RewritingToBlueInput() : blue_node(NULL) { register_int("needs_mipmaps", &needs_mipmaps); }
        virtual std::string effect_type_id() const { return "RewritingToBlueInput"; }
        std::string output_fragment_shader() { EXPECT_TRUE(false); return read_file("identity.frag"); }
        virtual void rewrite_graph(EffectChain *graph, Node *self) {