Changeset 352 for trunk/src


Ignore:
Timestamp:
Jul 29, 2011, 7:54:22 PM (13 years ago)
Author:
katerina
Message:

Fix ticket #257 (error message may contain uninitialized string).

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_error.c

    r283 r352  
    2727#if !defined(__sun__) && !defined(__sun)
    2828#define _XOPEN_SOURCE 600
     29#undef  _GNU_SOURCE
    2930#endif
    3031#include <string.h>
     
    351352
    352353#if defined(HAVE_STRERROR_R)
     354  if (len > 0) str[0] = '\0';
    353355  strerror_r(tellme, str, len);
    354356  return str;
  • trunk/src/sh_tools.c

    r313 r352  
    564564  SL_ENTER(_("connect_port"));
    565565
     566  if (errsiz > 0) errmsg[0] = '\0';
     567
    566568  /* paranoia -- should not happen
    567569   */
Note: See TracChangeset for help on using the changeset viewer.