From: Kurt Zeilenga Date: Fri, 23 Dec 2005 16:54:42 +0000 (+0000) Subject: ITS#4285 fix X-Git-Tag: OPENLDAP_REL_ENG_2_3_14~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6438b281515cb15fcb27928bc4f9831fd2bce4b4;p=openldap ITS#4285 fix --- diff --git a/include/ac/string.h b/include/ac/string.h index 7a5931e37e..f91f04035c 100644 --- a/include/ac/string.h +++ b/include/ac/string.h @@ -106,14 +106,14 @@ void * memrchr(const void *b, int c, size_t len); #if defined( HAVE_NONPOSIX_STRERROR_R ) # define AC_STRERROR_R(e,b,l) (strerror_r((e), (b), (l))) #elif defined( HAVE_STRERROR_R ) -# define AC_STRERROR_R(e,b,l) (strerror_r((e), (b), (l)) ? (b) : NULL) +# define AC_STRERROR_R(e,b,l) (strerror_r((e), (b), (l)) ? (b) : "") #elif defined( HAVE_SYS_ERRLIST ) # define AC_STRERROR_R(e,b,l) ((e) > -1 && (e) < sys_nerr \ - ? sys_errlist[(e)] : NULL ) + ? sys_errlist[(e)] : "" ) #elif defined( HAVE_STRERROR ) # define AC_STRERROR_R(e,b,l) (strerror(e)) #else -# define AC_STRERROR_R(e,b,l) (NULL) +# define AC_STRERROR_R(e,b,l) ("") #endif #endif /* _AC_STRING_H */