Also from other reviews I think you don't need to initialize those pointers to 0.