Commit 438dfdba authored by Thomas Guillem's avatar Thomas Guillem

dsm: free(NULL) is safe

parent cd9f04fd
......@@ -362,16 +362,14 @@ static void login_dialog( access_t *p_access )
if( psz_login != NULL )
{
if( p_sys->creds.login != NULL )
free( p_sys->creds.login );
free( p_sys->creds.login );
p_sys->creds.login = psz_login;
split_domain_login( &p_sys->creds.login, &p_sys->creds.domain );
}
if( psz_pass != NULL )
{
if( p_sys->creds.password != NULL )
free( p_sys->creds.password );
free( p_sys->creds.password );
p_sys->creds.password = psz_pass;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment