Commit 8f83367b by Juliusz Chroboczek

More noise.

1 parent 34cb26e0
Showing 1 changed file with 2 additions and 1 deletions
......@@ -273,8 +273,9 @@ main(int argc, char **argv)
if(fd < 0 && errno != ENOENT)
perror("open(babel-state)");
rc = unlink(state_file);
if(fd >= 0 && rc < 0) {
if(rc < 0)
perror("unlink(babel-state)");
if(fd >= 0 && rc < 0) {
/* If we couldn't unlink it, it's probably stale. */
close(fd);
fd = -1;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!