Faults and joints act as zones of weakness and provide pathways for seepage.
These discontinuities reduce the stability of dam foundations and increase the likelihood of foundation failure.
Hence,
\[
\boxed{\text{Fault lines and joints}}
\]
is the correct answer.
Therefore,
\[
\boxed{(B)}
\]