Skip to content

Commit

Permalink
Fix coverity detected problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Sep 11, 2015
1 parent e715be0 commit 2e6c9f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stored/backends/unix_file_device.c
Expand Up @@ -245,6 +245,13 @@ bool unix_file_device::d_truncate(DCR *dcr)

Mmsg2(errmsg, _("Device %s doesn't support ftruncate(). Recreating file %s.\n"),
prt_name, archive_name.c_str());
} else {
if (fstat(m_fd, &st) != 0) {
berrno be;

Mmsg2(errmsg, _("Unable to stat device %s. ERR=%s\n"), prt_name, be.bstrerror());
return false;
}
}

/*
Expand Down

0 comments on commit 2e6c9f3

Please sign in to comment.