[grilo-plugins] thetvdb: failing to compare episode titles.



commit 808ba4fd6b72ea047abaf78fd186d2b698a70076
Author: Victor Toso <me victortoso com>
Date:   Sat Dec 6 23:49:03 2014 +0100

    thetvdb: failing to compare episode titles.
    
    Using g_ascii_strncasecmp with 0 as number of chars to compare always
    return 0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741207

 src/thetvdb/grl-thetvdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/thetvdb/grl-thetvdb.c b/src/thetvdb/grl-thetvdb.c
index 5a1b3f6..42b3f8b 100644
--- a/src/thetvdb/grl-thetvdb.c
+++ b/src/thetvdb/grl-thetvdb.c
@@ -582,7 +582,7 @@ xml_parse_and_save_episodes (GomRepository *repository,
     }
 
     if (title != NULL && tmp_title != NULL
-        && g_ascii_strncasecmp (title, tmp_title, 0) == 0) {
+        && g_ascii_strcasecmp (title, tmp_title) == 0) {
       episode_found = TRUE;
       episode_resource = eres;
     }


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