spell miss
0 -> NULL
remove dangerous malloc()