Seems like missing initialisation for is_open and newlines