From: Karel Zak Date: Wed, 12 Dec 2012 11:12:25 +0000 (+0100) Subject: namei: don't care about xasprintf() return code X-Git-Tag: v2.23-rc1~434 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a591a1fb5023d80f3e9bf51defd9c148c8db93d;p=thirdparty%2Futil-linux.git namei: don't care about xasprintf() return code Signed-off-by: Karel Zak --- diff --git a/misc-utils/namei.c b/misc-utils/namei.c index e067bea0e5..97c5d43d26 100644 --- a/misc-utils/namei.c +++ b/misc-utils/namei.c @@ -123,8 +123,8 @@ add_id(struct idcache **ic, char *name, unsigned long int id, int *width) /* note, we ignore names with non-printable widechars */ if (w > 0) nc->name = xstrdup(name); - else if (xasprintf(&nc->name, "%lu", id) == -1) - nc->name = NULL; + else + xasprintf(&nc->name, "%lu", id); for (x = *ic; x && x->next; x = x->next);