default string in case confstr is broken

This commit is contained in:
Glenn Maynard
2004-03-29 20:47:29 +00:00
parent 68ad315022
commit 01ea004030
2 changed files with 2 additions and 2 deletions
@@ -80,7 +80,7 @@ ArchHooks_Unix::ArchHooks_Unix()
static CString LibcVersion() static CString LibcVersion()
{ {
char buf[1024]; char buf[1024] = "(error)";
int ret = confstr( _CS_GNU_LIBC_VERSION, buf, sizeof(buf) ); int ret = confstr( _CS_GNU_LIBC_VERSION, buf, sizeof(buf) );
if( ret == -1 ) if( ret == -1 )
return "(unknown)"; return "(unknown)";
@@ -101,7 +101,7 @@ static int PtraceDetach( int ThreadID )
CString ThreadsVersion() CString ThreadsVersion()
{ {
char buf[1024]; char buf[1024] = "(error)";
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) ); int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
if( ret == -1 ) if( ret == -1 )
return "(unknown)"; return "(unknown)";