diff options
| author | Karel Zak <kzak@redhat.com> | 2012-11-26 12:19:02 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2012-11-26 12:19:02 +0100 |
| commit | 1e7f2e6cf46360143198a4662c0711cebf2ceab8 (patch) | |
| tree | ae6ab815c013a7a16b91b16ec09a8eaf6ad527c0 /libmount/src | |
| parent | 0377ef91270d06592a0d4dd009c29e7b1ff9c9b8 (diff) | |
| download | util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.tar.gz | |
libmount: make debug stuff more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src')
| -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 f28935d0..04dd077a 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); |
