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 7ef9fd7c when the common xalloc.h libs were introduced. Signed-off-by:Dave Reisner <dreisner@archlinux.org>
Showing
Please register or sign in to comment