Commit a3072430 authored by Kai Blin's avatar Kai Blin Committed by Alexandre Julliard

kernel32/tests: logfile can be NULL, avoid dereferencing it (Coverity).

parent 6fd73ce6
......@@ -158,7 +158,11 @@ static void doDebugger(int argc, char** argv)
else
blackbox.debug_rc=TRUE;
get_events(logfile, &start_event, &done_event);
if (logfile)
{
get_events(logfile, &start_event, &done_event);
}
if (strstr(myARGV[2], "order"))
{
trace("debugger: waiting for the start signal...\n");
......@@ -185,7 +189,10 @@ static void doDebugger(int argc, char** argv)
else
blackbox.detach_rc=TRUE;
save_blackbox(logfile, &blackbox, sizeof(blackbox));
if (logfile)
{
save_blackbox(logfile, &blackbox, sizeof(blackbox));
}
trace("debugger: done debugging...\n");
SetEvent(done_event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment