git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidying: coverity issues
[exim.git]
/
src
/
src
/
queue.c
diff --git
a/src/src/queue.c
b/src/src/queue.c
index f53759c43ee0e92bf1a6e346dd5d4cbea5cbec1e..1b7b9f74c51e9f8d7eedfdf871b8d8cb496dbca1 100644
(file)
--- a/
src/src/queue.c
+++ b/
src/src/queue.c
@@
-1378,7
+1378,6
@@
switch(action)
}
if (yield)
}
if (yield)
- {
if (spool_write_header(id, SW_MODIFYING, &errmsg) >= 0)
printf("has been modified\n");
else
if (spool_write_header(id, SW_MODIFYING, &errmsg) >= 0)
printf("has been modified\n");
else
@@
-1386,7
+1385,6
@@
switch(action)
yield = FALSE;
printf("- while %s: %s\n", doing, errmsg);
}
yield = FALSE;
printf("- while %s: %s\n", doing, errmsg);
}
- }
break;
}
break;
}
@@
-1394,8
+1392,11
@@
switch(action)
/* Closing the datafile releases the lock and permits other processes
to operate on the message (if it still exists). */
/* Closing the datafile releases the lock and permits other processes
to operate on the message (if it still exists). */
-(void)close(deliver_datafile);
-deliver_datafile = -1;
+if (deliver_datafile >= 0)
+ {
+ (void)close(deliver_datafile);
+ deliver_datafile = -1;
+ }
return yield;
}
return yield;
}