opkg: using calloc to replace the malloc, initialize varaiable