From 86cb435adf8ed62552b2dea401b1d1645f416591 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 23 Feb 2021 03:31:29 +0000 Subject: [PATCH] dnn: fix build (nullptr issue) --- modules/dnn/src/layers/proposal_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnn/src/layers/proposal_layer.cpp b/modules/dnn/src/layers/proposal_layer.cpp index 060a94db78..69660b8d1b 100644 --- a/modules/dnn/src/layers/proposal_layer.cpp +++ b/modules/dnn/src/layers/proposal_layer.cpp @@ -287,7 +287,7 @@ public: CV_Assert(imInfo.total() >= 2); // We've chosen the smallest data type because we need just a shape from it. // We don't allocate memory but just need the shape is correct. - Mat fakeImageBlob(shape(1, 1, imInfo.at(0), imInfo.at(1)), CV_8UC1, nullptr); + Mat fakeImageBlob(shape(1, 1, imInfo.at(0), imInfo.at(1)), CV_8UC1, NULL); // Generate prior boxes. std::vector layerInputs(2), layerOutputs(1, priorBoxes);