Re: [U-Boot] [PATCH 1/1] tools: sunxi: avoid possible null pointer dereference

2017-05-04 Thread Jagan Teki
On Thu, May 4, 2017 at 2:41 AM, Heinrich Schuchardt wrote: > If endptr is NULL we should not dereference it. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > --- > tools/sunxi-spl-image-builder.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[U-Boot] [PATCH 1/1] tools: sunxi: avoid possible null pointer dereference

2017-05-03 Thread Heinrich Schuchardt
If endptr is NULL we should not dereference it. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- tools/sunxi-spl-image-builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sunxi-spl-image-builder.c b/tools/sunxi-spl-image-builder.c ind