Replaced g_malloc() + memset() with g_malloc0()