On a local uniqueness result for the inverse Sturm-Liouville problem