Changeset 383 for trunk/src/slib.c


Ignore:
Timestamp:
Dec 5, 2011, 10:30:33 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #281 (warnings from clang static analyzer).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/slib.c

    r371 r383  
    931931  else if (src == NULL)
    932932    {
    933       if (siz > 0)
     933      if (dst && siz > 0)
    934934        dst[0] = '\0';
    935935      return SL_ENONE;
     
    28352835   */
    28362836  bytecount    = 0;
    2837   bytewritten  = 0;
     2837
    28382838  while (bytecount < nbytes)
    28392839    {   
    2840       if ((bytewritten = write (fd, msg, nbytes-bytecount)) > 0)
     2840      bytewritten = write (fd, msg, nbytes-bytecount);
     2841
     2842      if (bytewritten > 0)
    28412843        {
    28422844          bytecount += bytewritten;
Note: See TracChangeset for help on using the changeset viewer.