Fixed comparison of pointer/NULL with < 0.  gcc 4.7.2 found this.