Changeset 352 for trunk/src/sh_error.c


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

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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.