diff mbox

[U-Boot] tools/msximage.c: fix warning about nptr possibly uninitialized

Message ID 1415978204-29625-1-git-send-email-albert.u.boot@aribaud.net
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Albert ARIBAUD Nov. 14, 2014, 3:16 p.m. UTC
Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
---
 tools/mxsimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Nov. 20, 2014, 9:39 a.m. UTC | #1
On 14/11/2014 16:16, Albert ARIBAUD wrote:
> Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/tools/mxsimage.c b/tools/mxsimage.c
index 81c7f2d..55e61e2 100644
--- a/tools/mxsimage.c
+++ b/tools/mxsimage.c
@@ -1416,7 +1416,7 @@  static int sb_parse_line(struct sb_image_ctx *ictx, struct sb_cmd_list *cmd)
 {
 	char *tok;
 	char *line = cmd->cmd;
-	char *rptr;
+	char *rptr = NULL;
 	int ret;
 
 	/* Analyze the identifier on this line first. */