@ -282,6 +282,7 @@ dosim(
/*---------------------------------------------------------------------------*/
#else
else if (!(rawfileFp = fopen(wl->wl_word, "w"))) {
rawfileFp = stdout; /* If fopen has failed, we have to proceed with stdout */
setvbuf(rawfileFp, rawfileBuf, _IOFBF, RAWBUF_SIZE);
perror(wl->wl_word);
ft_setflag = FALSE;
@ -126,6 +126,7 @@ com_resume(wordlist *wl)
else if (!(rawfileFp = fopen(last_used_rawfile, "a"))) {
perror(last_used_rawfile);