Initialize the pointer (eg. allocate the memory space) before you uses
it to avoid segamentation fault.