Re: [PATCH] libdwfl: Fix some GCC10 -Wnull-dereference issues.

2020-02-06 Thread Mark Wielaard
On Fri, 2020-01-24 at 23:28 +0100, Mark Wielaard wrote: > GCC10 on some arches will warn about possible NULL derefences. > In the libdwfl linux-kernel-modules.c cases it might be caught already > by earlier calls to get_release (). But it is hard to see that will > really always happen. So do an ex

[PATCH] libdwfl: Fix some GCC10 -Wnull-dereference issues.

2020-01-24 Thread Mark Wielaard
GCC10 on some arches will warn about possible NULL derefences. In the libdwfl linux-kernel-modules.c cases it might be caught already by earlier calls to get_release (). But it is hard to see that will really always happen. So do an explicit NULL check just in case. Signed-off-by: Mark Wielaard -