]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include,xalloc: check for NULL before calling strdup
authorDave Reisner <d@falconindy.com>
Thu, 29 Sep 2011 18:56:41 +0000 (14:56 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Oct 2011 12:22:27 +0000 (14:22 +0200)
commit960a734e3b3232633fc1508bcd78f112ecc3efa0
treecf5d5f4661ee7b3f91a9426cdd9bb63923369014
parent8c62239e5ee0970d8227c93cbc81e4693dc88122
include,xalloc: check for NULL before calling strdup

This fixes a segfault in mount (and possibly elsewhere) when invoked
without a -t parameter.

Broken in 7ef9fd7 when the common xalloc.h libs were introduced.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
include/xalloc.h