On a complete nonsingular curve over an algebraically closed field, a line bundle of degree zero with a global section is necessarily the trivial bundle. This is lemma IV.1.2 in Hartshorne's *Algebraic Geometry*.