Fixed memory initialization error when using -c option