gap-dev-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gap-dev-discuss] Cynthiune : fix a string comparison


From: Philippe Roussel
Subject: [Gap-dev-discuss] Cynthiune : fix a string comparison
Date: Thu, 03 May 2012 19:56:22 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Hi,

The code looks stupid :

diff -u -r1.1.1.1 ID3Tag.m
--- Bundles/ID3Tag/ID3Tag.m     25 Mar 2012 07:48:21 -0000      1.1.1.1
+++ Bundles/ID3Tag/ID3Tag.m     3 May 2012 17:55:44 -0000
@@ -91,7 +91,7 @@
           string = id3_field_getstrings (field, 0);
           if (string)
             {
-              if (commentTag == ID3_FRAME_GENRE)
+              if (!strcmp(commentTag, ID3_FRAME_GENRE))
                 string = id3_genre_name (string);
               comment = [NSString stringWithUCS4String: string];
             }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]