Only write out what file were writing to if we have an output handle (radsniff)
Pointers should be initialised to NULL not '\0'