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

Albert ARIBAUD albert.u.boot at aribaud.net
Fri Nov 14 16:16:44 CET 2014


Signed-off-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
---
 tools/mxsimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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. */
-- 
2.1.0



More information about the U-Boot mailing list