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 --- jffs2reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jffs2reader.c') diff --git a/jffs2reader.c b/jffs2reader.c index 5231ff0..a62da9a 100644 --- a/jffs2reader.c +++ b/jffs2reader.c @@ -694,7 +694,7 @@ struct jffs2_raw_dirent *resolvepath0(char *o, size_t size, uint32_t ino, return NULL; } - pp = path = strdup(p); + pp = path = xstrdup(p); if (*path == '/') { path++; -- cgit v1.2.3