Fixed Bug #7149

Fixed warning in clang, all credits to mkbu95 for figuring it out
http://hercules.ws/board/tracker/issue-7149-bug-in-clang-crashing-with-new-channel-system/

Signed-off-by: shennetsind <ind@henn.et>