diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2015-05-17 16:03:55 -0500 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2015-05-17 16:03:55 -0500 |
commit | 749d397ff387941c2a5e5dc9692619300ad64f88 (patch) | |
tree | 5d793ff3619531a013d733621e29f5cb27199b4e /TAO/utils | |
parent | a69317924b6b5b60085c87b694f9337e57a377a2 (diff) | |
download | ATCD-749d397ff387941c2a5e5dc9692619300ad64f88.tar.gz |
Coverity fix
Diffstat (limited to 'TAO/utils')
-rw-r--r-- | TAO/utils/logWalker/Log.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/utils/logWalker/Log.cpp b/TAO/utils/logWalker/Log.cpp index a86fd2937bf..80579b33c54 100644 --- a/TAO/utils/logWalker/Log.cpp +++ b/TAO/utils/logWalker/Log.cpp @@ -461,6 +461,14 @@ Log::parse_make_idle_i (void) char *hpos = ACE_OS::strchr(this->info_,'['); long handle = ACE_OS::strtol(hpos+1,0,10); PeerProcess *pp = this->hostproc_->find_peer(handle); + if (pp == 0) + { + ACE_ERROR ((LM_ERROR, + "%d: make idle, error parsing %C, can't find peer " + "for handle %d, text = %s\n", + this->offset_, this->origin_.c_str(), handle, this->info_)); + return; + } this->thr_->exit_wait (pp, this->offset_); } |