Add a defensive null check for 'fp' in rev.c to silence a false-positive static analyzer warning (core.NullDereference).
- fp is either stdin or the result of a successful fopen
- Static analyzer warns of possible null dereference
- Behavior does not change
- Tiny, safe improvement