From: dirk Date: Sat, 24 Jan 2015 10:19:18 +0000 (+0000) Subject: Added check to satisfy coverity. X-Git-Tag: 7.0.1-0~1390 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8ef6e8671cbbe0f38b80f8307d96031bc59246c;p=imagemagick Added check to satisfy coverity. --- diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index c8be626c7..b8c49598e 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -3498,8 +3498,11 @@ void Magick::Image::morphologyChannel(const ChannelType channel_, option=CommandOptionToMnemonic(MagickKernelOptions,kernel_); if (option == (const char *)NULL) - throwExceptionExplicit(MagickCore::OptionError, - "Unable to determine kernel type."); + { + throwExceptionExplicit(MagickCore::OptionError, + "Unable to determine kernel type."); + return; + } kernel=std::string(option); if (!arguments_.empty())