Don't dereference strrchr without check (CID 185)