It is shown that, under certain conditions, satisfied by stable distributions, symmetric distributions, distributions with zero mean and finite second moment and other distributions, the distribution function of the maxima of successive partial sums of identically distributed random variables has an asymptotic property. This property implies the regular variation of the tail of the distribution of the hitting times of the associated random walk, and hence that these hitting times belong to the domain of attraction of a stable law.