Fix possible null pointer dereference in help.c
Remove dead store from bw.c
Protect against some null pointer dereferences
Remove more dead stores
Fix double initialization