[logcollector] fix compiler warnings
[logcollector] fix clang analyzer warning: Null pointer passed as an argument to a 'nonnull' parameter
[logcollector] remove duplicated statement
[logcollector] fix CID 28448
[logcollector] fix CID 28447
[logcollector] fix CID 28519
remove strange code, relating to logcollector
Merge pull request #361 from cgzones/logcollector

logcollector