Skip to content
Snippets Groups Projects
Commit 31b96ae3 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Sieve file storage: Fixed couple of Coverity warnings.

parent e331c727
No related branches found
No related tags found
No related merge requests found
......@@ -354,13 +354,7 @@ static int sieve_file_script_open
if ( ret < 0 ) {
/* Make sure we have a script name for the error */
if ( name == NULL ) {
if ( basename == NULL ) {
if ( filename == NULL )
filename = path_split_filename(path, &dirpath);
basename = sieve_script_file_get_scriptname(filename);
if ( basename == NULL )
basename = filename;
}
i_assert( basename != NULL );
name = basename;
}
sieve_file_script_handle_error
......
......@@ -298,6 +298,8 @@ static int sieve_file_storage_init_common
bool have_link = FALSE;
int ret;
i_assert( storage_path != NULL || active_path != NULL );
fstorage->prev_mtime = (time_t)-1;
/* Get active script path */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.