The reason the theorem requires the set to be "starlike with star-center 0" is precisely so that the line [0,z] will be contained in the set (since you're integrating over that path). Just check whether [0,z] is in your set for every point z in the set, which is the definition of starlike with star-center 0.