Let M 2n+1 be a compact contact manifold and 𝓐 the set of associated metrics. Using the scalar curvature R and the *-scalar curvature R*, in  we defined the "total scalar curvature", by and showed that the critical points of I(g) on 𝓐 are the K-contact metrics, i.e. metrics for which the characteristic vector field is Killing. In this paper we compute the second variation of I(g) and prove that the index of I(g) and of —I(g) are both positive at each critical point. As an application we show that the classical total scalar curvature A(g) = ∫M R dVg restricted to 𝓐 cannot have a local minimum at any Sasakian metric.