Commit daa79c25 daa79c25764e300461e025dcd1898e312996cdeb by Alain Magloire

Maybe it was the codeine ?? variable was not initialize.

1 parent c948b18a
......@@ -171,7 +171,7 @@ attribute_is_recent (attribute_t attr)
/* something is recent when it is not read and not seen. */
return (attr->flag == 0
|| ! ((attr->flag & MU_ATTRIBUTE_SEEN)
&& (attr->flag & MU_ATTRIBUTE_READ));
&& (attr->flag & MU_ATTRIBUTE_READ)));
}
int
......@@ -233,7 +233,7 @@ attribute_unset_recent (attribute_t attr)
{
if (attr == NULL)
return 0;
attr-> |= MU_ATTRIBUTE_SEEN;
attr->flag |= MU_ATTRIBUTE_SEEN;
return 0;
}
......
......@@ -560,7 +560,7 @@ message_write (stream_t os, const char *buf, size_t buflen,
{
message_t msg;
int status = 0;
size_t bufsize = 0;
size_t bufsize = buflen;
if (os == NULL || (msg = os->owner) == NULL)
return EINVAL;
......@@ -653,7 +653,7 @@ message_write (stream_t os, const char *buf, size_t buflen,
buflen -= written;
}
if (pnwrite)
*pnwrite = busize - buflen;
*pnwrite = bufsize - buflen;
return status;
}
......