mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Remove redundant check for NULL pointer in cygwin_exception::dump_exception
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
284bec3174
commit
6a6ae087e8
@ -175,15 +175,12 @@ cygwin_exception::dump_exception ()
|
||||
{
|
||||
const char *exception_name = NULL;
|
||||
|
||||
if (e)
|
||||
for (int i = 0; status_info[i].name; i++)
|
||||
{
|
||||
for (int i = 0; status_info[i].name; i++)
|
||||
if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
|
||||
{
|
||||
if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
|
||||
{
|
||||
exception_name = status_info[i].name;
|
||||
break;
|
||||
}
|
||||
exception_name = status_info[i].name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user