Fix return value of make_filename() when no filename_format
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 28 Mar 2017 20:02:49 +0000 (23:02 +0300)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 21:14:20 +0000 (15:14 -0600)
commite5a43605ba1dc7a0843eaafcc3f9090639bd9169
tree58eb64000d4f13134782fcf72237a5408e06b7c0
parentf678f8d2aa7f6972b18e368fe42f7bc48134e66c
Fix return value of make_filename() when no filename_format

This is unlikely to happen in the first place since ->filename_format
has a default value, and option parser can also detect an empty string,
but it should return buf which is sprintf'd right before returning.

A caller expects this function to return filename string (which is
buf arg itself in this case), and it also doesn't handle NULL return.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c