[PATCH 6/9] gatchat: explicitly compare pointers to NULL