fixes a typo
authorPeng Wu <alexepico@gmail.com>
Mon, 11 Oct 2010 06:34:56 +0000 (14:34 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 11 Oct 2010 06:34:56 +0000 (14:34 +0800)
utils/storage/tag_utility.cpp

index a53a8fb..3176056 100644 (file)
@@ -209,7 +209,7 @@ bool taglib_read(const char * input_line, int & line_type, GPtrArray * values,
         /* check ignored tags. */
         bool tag_ignored = false;
         for ( int m = 0; m < ignored_len; ++m) {
-            if ( strcmp(tmp, cur_entry->m_ignored_tags[i]) == 0) {
+            if ( strcmp(tmp, cur_entry->m_ignored_tags[m]) == 0) {
                 tag_ignored = true;
                 break;
             }
@@ -223,7 +223,7 @@ bool taglib_read(const char * input_line, int & line_type, GPtrArray * values,
         /* check required tags. */
         bool tag_required = false;
         for ( int m = 0; m < required_len; ++m) {
-            if ( strcmp(tmp, cur_entry->m_required_tags[i]) == 0) {
+            if ( strcmp(tmp, cur_entry->m_required_tags[m]) == 0) {
                 tag_required = true;
                 break;
             }