default string in case confstr is broken
This commit is contained in:
@@ -80,7 +80,7 @@ ArchHooks_Unix::ArchHooks_Unix()
|
||||
|
||||
static CString LibcVersion()
|
||||
{
|
||||
char buf[1024];
|
||||
char buf[1024] = "(error)";
|
||||
int ret = confstr( _CS_GNU_LIBC_VERSION, buf, sizeof(buf) );
|
||||
if( ret == -1 )
|
||||
return "(unknown)";
|
||||
|
||||
@@ -101,7 +101,7 @@ static int PtraceDetach( int ThreadID )
|
||||
|
||||
CString ThreadsVersion()
|
||||
{
|
||||
char buf[1024];
|
||||
char buf[1024] = "(error)";
|
||||
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
|
||||
if( ret == -1 )
|
||||
return "(unknown)";
|
||||
|
||||
Reference in New Issue
Block a user