I'm not sure why init is split from bindResults().  This should really initialise bindinfo[i].buffer to NULL if it is separate.