aboutsummaryrefslogtreecommitdiff
path: root/mkfs.jffs2.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-08 19:01:55 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-07-01 08:56:04 +0300
commit450e9cb17d3d86e3e45fd427c85644ac64ec60a4 (patch)
tree39e0c67d2650164c9095ba90d47485b8170c571f /mkfs.jffs2.c
parent1075562c9e34153b43c12ec5c0b173a1a593b92a (diff)
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 <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'mkfs.jffs2.c')
-rw-r--r--mkfs.jffs2.c2
1 files changed, 1 insertions, 1 deletions
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);