Missing close() calls just for the sake of it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9c5c2d9d45
commit
99734c6841
|
@ -88,12 +88,14 @@ send_external_command(const char *command, int *result)
|
|||
if (bytesRead == 0) {
|
||||
fprintf(stderr, "Error: Unexpected end of fs_shell reply. Was "
|
||||
"still expecting %d bytes\n", toRead);
|
||||
close(fd);
|
||||
return false;
|
||||
}
|
||||
|
||||
replyBuffer += bytesRead;
|
||||
toRead -= bytesRead;
|
||||
}
|
||||
close(fd);
|
||||
|
||||
*result = reply.error;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue