Don't dereference td if it's NULL.
Submitted by: Alexander N. Kabaev <ak03@gte.com>
This commit is contained in:
parent
f955d6dc66
commit
7e49874f08
@ -1364,6 +1364,7 @@ static int
|
||||
nfs_msg(struct thread *td, char *server, char *msg)
|
||||
{
|
||||
|
||||
tprintf(td->td_proc, LOG_INFO, "nfs server %s: %s\n", server, msg);
|
||||
tprintf(td ? td->td_proc, NULL, LOG_INFO,
|
||||
"nfs server %s: %s\n", server, msg);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user