diff --git a/lib/search/regex.c b/lib/search/regex.c index 140ca83f1..2a58b2523 100644 --- a/lib/search/regex.c +++ b/lib/search/regex.c @@ -839,7 +839,7 @@ mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t *lc_mc_s #ifdef HAVE_PCRE2 int errcode; - char error[BUF_SMALL]; + char error[BUF_SMALL] = ""; size_t erroffset; int pcre_options = PCRE2_MULTILINE; #else diff --git a/src/vfs/sftpfs/dir.c b/src/vfs/sftpfs/dir.c index 34461e28d..a019e8be6 100644 --- a/src/vfs/sftpfs/dir.c +++ b/src/vfs/sftpfs/dir.c @@ -68,7 +68,7 @@ sftpfs_opendir (const vfs_path_t *vpath, GError **mcerror) sftpfs_dir_data_t *sftpfs_dir; sftpfs_super_t *sftpfs_super; const vfs_path_element_t *path_element; - LIBSSH2_SFTP_HANDLE *handle; + LIBSSH2_SFTP_HANDLE *handle = NULL; const GString *fixfname; if (!sftpfs_op_init (&sftpfs_super, &path_element, vpath, mcerror))