changeset 37069:004f226b4e4b

Rewrite add_vf(). Prefer strcmp() to gstrcmp() since vf_settings[i].name has been checked not to be NULL. Additionally, rephrase the condition.
author ib
date Thu, 24 Apr 2014 12:29:30 +0000
parents 557b33c6a79a
children 393b5e0d5f28
files gui/interface.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Apr 24 12:22:09 2014 +0000
+++ b/gui/interface.c	Thu Apr 24 12:29:30 2014 +0000
@@ -283,7 +283,7 @@
         int i = 0;
 
         while (vf_settings[i].name) {
-            if (!gstrcmp(vf_settings[i++].name, vf)) {
+            if (strcmp(vf_settings[i].name, vf) == 0) {
                 i = -1;
                 break;
             }