]> 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>
Thu, 29 Sep 2011 22:24:05 +0000 (00:24 +0200)
commit8ddb6b0caee7eb8699aef7ccd67316d241448e7e
treeff0514c5f56c902bba446768b6f31800963e8c95
parent269943ff0f00bbd348f495c4e691467bb879d154
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