A uniqueness theorem for an inverse Sturm–Liouville problem