[PATCH] blktrace: handle case where output directory is not set
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Thu, 2 Mar 2006 11:46:41 +0000 (12:46 +0100)
committerJens Axboe <axboe@suse.de>
Thu, 2 Mar 2006 11:46:41 +0000 (12:46 +0100)
blktrace.c

index 47b4d3f4aa66f00ae9717926d438a0fe2bbb8154..ca1caac4e8ed0d5d581e73012e050cf2790773db 100644 (file)
@@ -981,6 +981,8 @@ static int fill_ofname(struct device_information *dip,
 
        if (output_dir)
                len = sprintf(dst, "%s/", output_dir);
+       else
+               len = sprintf(dst, "./");
 
        if (net_mode == Net_server) {
                struct net_connection *nc = dip->nc;