minor fixes: uninitialized values, undefined macros, missing pointer checks, wrong comments, spacing

clang 2.7 complains that tor code contains:

  • uninitialized values, and
  • undefined macros

I also noticed:

  • missing checks for NULL pointers,
  • incorrect comments, and
  • spacing

I'm working on a branch to fix these issues.