Refactor, assignments outside of conditionals and use 'NULL'
Refactor, assignments outside of conditionals and use 'NULL'

- Prefer assignments outside of conditional statemetns for readability
- Use 'NULL' constant when checking pointers rather than '0'

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/mdnsd,troglobit/mdnsd