Updated select.c

Added a missing return