We consider a boundary value problem consisting of the one-dimensional parabolic equation gu t = ( hu x ) x + q , where g, h and q are functions of x, subject to some general boundary conditions. By developing a maximum principle for the boundary value problem, rather than the equation, we prove the uniqueness of a nonnegative solution that depends continuously on boundary values.