diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2009-11-02 16:32:32 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2009-11-02 16:32:32 +0000 |
| commit | b561979f8cf4bbfd48a315eaaf95c76e23a1f6f9 (patch) | |
| tree | b82761b8c0c42de1668c97399bb195dc19f39154 /sys/kern | |
| parent | 7c064f68bea8b6f67595c1e50796afd9f7a74c2b (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/kern_proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index e012a3ed4c00..f931245fda4e 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -847,8 +847,7 @@ fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp, int preferthread) strlcpy(kp->ki_wmesg, td->td_wmesg, sizeof(kp->ki_wmesg)); else bzero(kp->ki_wmesg, sizeof(kp->ki_wmesg)); - if (td->td_name[0] != '\0') - strlcpy(kp->ki_ocomm, td->td_name, sizeof(kp->ki_ocomm)); + strlcpy(kp->ki_ocomm, td->td_name, sizeof(kp->ki_ocomm)); if (TD_ON_LOCK(td)) { kp->ki_kiflag |= KI_LOCKBLOCK; strlcpy(kp->ki_lockname, td->td_lockname, |
