We study a generalized Hadamard walk in one dimension with three inner states. The particle governed by the three-state quantum walk moves, in superposition, both to the left and to the right according to the inner state. In addition to these two degrees of freedom, it is allowed to stay at the same position. We calculate rigorously the wave function of the particle starting from the origin for any initial qubit state and show the spatial distribution of probability of finding the particle. In contrast with the Hadamard walk with two inner states on a line, the probability of finding the particle at the origin does not converge to zero even after infinite time steps except special initial states. This implies that the particle is trapped near the origin after a long time with high probability.