[vlc-commits] keystore: store a path even if it's not truncated

Thomas Guillem git at videolan.org
Mon Jan 11 19:02:16 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 11 18:36:06 2016 +0100| [42698f7cb71bc09d85f3ff4c6de035bcdab8ed7e] | committer: Thomas Guillem

keystore: store a path even if it's not truncated

Fix storing a 1st level path.

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

 src/misc/keystore.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/misc/keystore.c b/src/misc/keystore.c
index 96092bb..eaa8e13 100644
--- a/src/misc/keystore.c
+++ b/src/misc/keystore.c
@@ -454,11 +454,6 @@ vlc_credential_store(vlc_credential *p_credential)
         }
         if (p_slash && psz_path != p_slash)
             *p_slash = '\0';
-        else
-        {
-            free(psz_path);
-            psz_path = NULL;
-        }
     }
 
     const char *ppsz_values[KEY_MAX] = { 0 };



More information about the vlc-commits mailing list