Coverity and build fixes from Nelson
authorSteve Youngs <steve@sxemacs.org>
Wed, 7 Mar 2012 22:24:54 +0000 (08:24 +1000)
committerSteve Youngs <steve@sxemacs.org>
Wed, 7 Mar 2012 22:24:54 +0000 (08:24 +1000)
commitc23a6b9d177fa381447bdac49aefe5a028d8d487
tree2306a4b01744b9c573204dbd62bfb6a13d2a2076
parenta1ec340a77f328d3599339c47d6c241d7e07ec35
parente7ee5bd7a42e63e991a7ecb8d03c83d59a9b35f4
Coverity and build fixes from Nelson

* merges:
  Coverity: CID 400010: Improper use of negative value
  Coverity: CID 400001: Logically dead code
  Coverity: CID 400005: Division or modulo by zero
  Coverity: CID 400007: Deference after null check
  Coverity: CID 400831: Out of bonds access
  Coverity: CID 400832: Out of bounds access
  Fix build
  Fix the relocate_fd
  Coverity CID 400833 UNINIT