Don't dereference td if it's NULL.

Submitted by:	Alexander N. Kabaev <ak03@gte.com>
This commit is contained in:
Julian Elischer 2001-10-08 23:47:44 +00:00
parent f955d6dc66
commit 7e49874f08

View File

@ -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);
}