[PATCH 1/2] Replace improper use of g_malloc(0) with g_new0