Fix #1536 - Fix compile error in cmd_search.c