Coverity assumes that open() can normally return 0.
done:
- if (fd > 0) {
- close(fd);
+ if (fd != -1) {
+ (void) close(fd);
}
if (description != 0) {
memory_error:
- if (fd > 0) {
- close(fd);
+ if (fd != -1) {
+ (void) close(fd);
}
njs_exception_memory_error(vm);
done:
- if (fd > 0) {
- close(fd);
+ if (fd != -1) {
+ (void) close(fd);
}
if (description != 0) {
memory_error:
- if (fd > 0) {
- close(fd);
+ if (fd != -1) {
+ (void) close(fd);
}
njs_exception_memory_error(vm);
done:
- if (fd > 0) {
- close(fd);
+ if (fd != -1) {
+ (void) close(fd);
}
if (description != 0) {
done:
- if (fd > 0) {
- close(fd);
+ if (fd != -1) {
+ (void) close(fd);
}
if (description != 0) {