missed this in previous checkin

This commit is contained in:
Christopher Faylor
2011-11-24 21:38:17 +00:00
parent ef8bff85be
commit e553226cfa
2 changed files with 6 additions and 3 deletions

View File

@@ -258,12 +258,15 @@ cygthread::name (DWORD tid)
break;
}
if (!res)
if (res)
/* ok */;
else if (!_main_tls)
res = "main";
else
{
__small_sprintf (_my_tls.locals.unknown_thread_name, "unknown (%p)", tid);
res = _my_tls.locals.unknown_thread_name;
}
return res;
}