projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7bf034e
)
dma: correctly initialize error before delivering mail
author
Simon Schubert <corecode@dragonflybsd.org>
Thu, 16 Jul 2009 09:54:44 +0000 (11:54 +0200)
committer
Simon Schubert <corecode@dragonflybsd.org>
Fri, 17 Jul 2009 10:45:38 +0000 (12:45 +0200)
error is used to return failure or success from deliver_remote(). However
error is also used before, so we have to make sure that it is initialized
to 0, else a previous (non-fatal) error could pull through, even if the
delivery was successful.
libexec/dma/net.c
patch
|
blob
|
blame
|
history
diff --git
a/libexec/dma/net.c
b/libexec/dma/net.c
index
c9ea7f9
..
551e44f
100644
(file)
--- a/
libexec/dma/net.c
+++ b/
libexec/dma/net.c
@@
-397,6
+397,7
@@
deliver_remote(struct qitem *it, const char **errmsg)
return (1);
}
+ error = 0;
while (!feof(it->queuef)) {
if (fgets(line, sizeof(line), it->queuef) == NULL)
break;