--- src/apprentice.c +++ src/apprentice.c @@ -562,6 +562,7 @@ /* invalid search type, but no need to complain here */ break; } + return 0; } /*