From 450e9cb17d3d86e3e45fd427c85644ac64ec60a4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 8 May 2013 19:01:55 -0400 Subject: use xstrdup in a few more places These call sites either assume there is no failure (they deref the pointer right away), or the exit themselves. Use xstrdup() instead. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- mkfs.jffs2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkfs.jffs2.c') diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c index c1b0f0d..f09c0b2 100644 --- a/mkfs.jffs2.c +++ b/mkfs.jffs2.c @@ -469,7 +469,7 @@ static int interpret_table_entry(struct filesystem_entry *root, char *line) } else { /* If parent is NULL (happens with device table entries), * try and find our parent now) */ - tmp = strdup(name); + tmp = xstrdup(name); dir = dirname(tmp); parent = find_filesystem_entry(root, dir, S_IFDIR); free(tmp); -- cgit v1.2.3