[vlc-commits] Unused variable

Rémi Denis-Courmont git at videolan.org
Fri Mar 16 10:30:17 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Mar 16 11:29:57 2012 +0200| [abbc854ee1efef6ca463145ea1d203b14c4506d1] | committer: Rémi Denis-Courmont

Unused variable

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

 src/config/file.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/config/file.c b/src/config/file.c
index 2573420..6eac3f9 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -402,9 +402,7 @@ static int SaveConfigFile (vlc_object_t *p_this)
 
         while ((linelen = getline (&line, &bufsize, file)) != -1)
         {
-            char *p_index2;
-
-            if ((line[0] == '[') && (p_index2 = strchr(line,']')))
+            if ((line[0] == '[') && (strchr (line,']') != NULL))
             {
                 module_t *module;
 



More information about the vlc-commits mailing list