Fix misc warnings

For useless empty init and null comparisons