PR remote/17946: Fix wrong comparison of pointer against char