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) ...@@ -171,7 +171,7 @@ attribute_is_recent (attribute_t attr)
171 /* something is recent when it is not read and not seen. */ 171 /* something is recent when it is not read and not seen. */
172 return (attr->flag == 0 172 return (attr->flag == 0
173 || ! ((attr->flag & MU_ATTRIBUTE_SEEN) 173 || ! ((attr->flag & MU_ATTRIBUTE_SEEN)
174 && (attr->flag & MU_ATTRIBUTE_READ)); 174 && (attr->flag & MU_ATTRIBUTE_READ)));
175 } 175 }
176 176
177 int 177 int
...@@ -233,7 +233,7 @@ attribute_unset_recent (attribute_t attr) ...@@ -233,7 +233,7 @@ attribute_unset_recent (attribute_t attr)
233 { 233 {
234 if (attr == NULL) 234 if (attr == NULL)
235 return 0; 235 return 0;
236 attr-> |= MU_ATTRIBUTE_SEEN; 236 attr->flag |= MU_ATTRIBUTE_SEEN;
237 return 0; 237 return 0;
238 } 238 }
239 239
......
...@@ -560,7 +560,7 @@ message_write (stream_t os, const char *buf, size_t buflen, ...@@ -560,7 +560,7 @@ message_write (stream_t os, const char *buf, size_t buflen,
560 { 560 {
561 message_t msg; 561 message_t msg;
562 int status = 0; 562 int status = 0;
563 size_t bufsize = 0; 563 size_t bufsize = buflen;
564 564
565 if (os == NULL || (msg = os->owner) == NULL) 565 if (os == NULL || (msg = os->owner) == NULL)
566 return EINVAL; 566 return EINVAL;
...@@ -653,7 +653,7 @@ message_write (stream_t os, const char *buf, size_t buflen, ...@@ -653,7 +653,7 @@ message_write (stream_t os, const char *buf, size_t buflen,
653 buflen -= written; 653 buflen -= written;
654 } 654 }
655 if (pnwrite) 655 if (pnwrite)
656 *pnwrite = busize - buflen; 656 *pnwrite = bufsize - buflen;
657 return status; 657 return status;
658 } 658 }
659 659
......