break;
case OP_MAX + 3: /* accept always */
done = 0;
- fp = fopen(CertificateFile, "a");
+ fp = mutt_file_fopen(CertificateFile, "a");
if (fp)
{
/* save hostname if necessary */
*/
void mutt_window_clrtoeol(struct MuttWindow *win)
{
+ if (!win || !stdscr)
+ return;
+
int row, col, curcol;
if (win->col_offset + win->cols == COLS)
int last;
} *syntax = NULL;
- if (!buf)
+ if (!buf || !stdscr)
return;
do
size_t n = mutt_str_strlen((char *) s);
mbstate_t mbstate;
+ if (!stdscr)
+ return;
+
memset(&mbstate, 0, sizeof(mbstate));
while (*s)
{
*/
FILE *mutt_file_fopen(const char *path, const char *mode)
{
+ if (!path || !mode)
+ return NULL;
+
if (mode[0] == 'w')
{
int fd;