cephfs: should give a value before use cpp_strerror

Signed-off-by:song baisen <song.baisen@zte.com.cn>
This commit is contained in:
songbaisen 2016-05-26 15:56:26 +08:00
parent 45a15914c2
commit 501e825416

View File

@ -194,6 +194,7 @@ int init_options(int argc, char **argv, int *fd, char **path, int *cmd,
*fd = open(argv[1], O_RDONLY);
if (*fd < 0) {
*fd = -errno;
cerr << "error opening path: " << cpp_strerror(*fd) << endl;
return 1;
}