Perhaps you missed my point. You have a list of pointers. Nothing more. The pointer must be set to point to something. Where does that happen?
normga wrote:
the code always query mysql successful
That doesn't mean anything. Code can run successfully, sometimes, even with uninitialized pointers. It depends on how the memory is laid down.