From 22f82362296ee15f05b4331a5ba77b42bba55bc6 Mon Sep 17 00:00:00 2001 From: trz Date: Mon, 17 Jul 2006 19:01:09 +0000 Subject: Fix for bug #2934 --- tapset/ioblock.stp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tapset/ioblock.stp') diff --git a/tapset/ioblock.stp b/tapset/ioblock.stp index 746460cc..484b61f3 100644 --- a/tapset/ioblock.stp +++ b/tapset/ioblock.stp @@ -62,11 +62,12 @@ probe ioblock.end /* Return the block device name */ function bio_devname:string(bio:long) %{ - char b[BDEVNAME_SIZE]; + char b[BDEVNAME_SIZE] = ""; struct bio *bp; bp = (struct bio *) ((unsigned long) THIS->bio); - bdevname(bp->bi_bdev,b); + if (bp->bi_bdev) + bdevname(bp->bi_bdev,b); sprintf(THIS->__retvalue,"%s",b); %} -- cgit