[vlc-commits] keystore: match entry if it hasn't a path

Thomas Guillem git at videolan.org
Sun Jan 24 12:18:58 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Jan 24 11:38:26 2016 +0100| [29de47e790e10971f935851b350dc7c61ab9c3bd] | committer: Thomas Guillem

keystore: match entry if it hasn't a path

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

 src/misc/keystore.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/misc/keystore.c b/src/misc/keystore.c
index 72bd356..3d338a1 100644
--- a/src/misc/keystore.c
+++ b/src/misc/keystore.c
@@ -136,7 +136,10 @@ find_closest_path(vlc_keystore_entry *p_entries, unsigned i_count,
         vlc_keystore_entry *p_entry = &p_entries[i];
         const char *psz_entry_path = p_entry->ppsz_values[KEY_PATH];
         if (psz_entry_path == NULL)
+        {
+            p_match_entry = p_entry;
             continue;
+        }
         size_t i_entry_pathlen = strlen(psz_entry_path);
 
         if (strncasecmp(psz_decoded_path, psz_entry_path, i_entry_pathlen) == 0



More information about the vlc-commits mailing list