[PATCH] NULL pointer dereference - segfault

Lubomir I. Ivanov neolit123 at gmail.com
Tue Mar 17 17:16:39 PDT 2015


On 18 March 2015 at 01:45, Marcos Cardinot <mcardinot at gmail.com> wrote:
>
> Hello folks,
>
> The current code in RulerItem2::settingsChanged() is dereferencing the
null pointer 'profWidget'.
> It can cause a segmentation fault.
>
>

hi, there is no need for the braces { } around the single lined "if"
condition.
could you remove them and resend?

lubomir
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150318/4b18ce21/attachment.html>


More information about the subsurface mailing list