x and str malloced but not assigned a value