ccanlint: fix more potential segvs when reporting ccanlint errors.