diff options
author | Karel Zak | 2012-11-26 12:19:02 +0100 |
---|---|---|
committer | Karel Zak | 2012-11-26 12:19:02 +0100 |
commit | 1e7f2e6cf46360143198a4662c0711cebf2ceab8 (patch) | |
tree | ae6ab815c013a7a16b91b16ec09a8eaf6ad527c0 /libmount | |
parent | mount: (deprecated) drop --guess-fstype (diff) | |
download | kernel-qcow2-util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.tar.gz kernel-qcow2-util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.tar.xz kernel-qcow2-util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.zip |
libmount: make debug stuff more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r-- | libmount/src/mountP.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index f28935d0d..04dd077a8 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -89,7 +89,8 @@ mnt_debug_h(void *handler, const char *mesg, ...) { va_list ap; - fprintf(stderr, "[%p]: ", handler); + if (handler) + fprintf(stderr, "[%p]: ", handler); va_start(ap, mesg); vfprintf(stderr, mesg, ap); va_end(ap); |