[vlc-commits] kwallet: remove redundant vlc_memstream_flush()

Rémi Denis-Courmont git at videolan.org
Wed Jan 15 17:53:31 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 15 18:50:12 2020 +0200| [fd505e8ce6e8a4153f84b5b7271b38cc33f0eefc] | committer: Rémi Denis-Courmont

kwallet: remove redundant vlc_memstream_flush()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd505e8ce6e8a4153f84b5b7271b38cc33f0eefc
---

 modules/keystore/kwallet.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/keystore/kwallet.c b/modules/keystore/kwallet.c
index 06ea021293..98707ee247 100644
--- a/modules/keystore/kwallet.c
+++ b/modules/keystore/kwallet.c
@@ -205,8 +205,6 @@ values2key( const char* const* ppsz_values, bool b_search )
 end:
     free( psz_b64_realm );
     free( psz_b64_auth );
-    if ( vlc_memstream_flush( &ms ) != 0 )
-        b_state = false;
     char *psz_key = vlc_memstream_close( &ms ) == 0 ? ms.ptr : NULL;
     if ( !b_state )
     {



More information about the vlc-commits mailing list