Skip to contentSkip to conversation

tools/msximage.c: fix warning about nptr possibly uninitialized

PATCH New Albert ARIBAUD 2 participants 2 messages Nov 14, 2014 – Nov 20, 2014 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/msximage.c: fix warning about nptr possibly uninitialized

---
 tools/mxsimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mxsimage.c +1 -1
index 81c7f2d..55e61e2 100644
@@ -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. */
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 tools/msximage.c: fix warning about nptr possibly uninitialized

Quoted 2 lines · Albert ARIBAUD

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================