[grilo-plugins/0.2.x: 25/30] dmap: Standardize use of strcmp



commit 96fb3ac575440bf16ade49fa42d547a86cecf5c8
Author: W. Michael Petullo <mike flyn org>
Date:   Sat Sep 5 09:04:44 2015 -0400

    dmap: Standardize use of strcmp
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746722

 src/dmap/grl-daap-db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
index 1e83e36..641e0dd 100644
--- a/src/dmap/grl-daap-db.c
+++ b/src/dmap/grl-daap-db.c
@@ -244,7 +244,7 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
 static gboolean
 same_media (GrlMedia *a, GrlMedia *b)
 {
-  return ! strcmp (grl_media_get_id (a), grl_media_get_id (b));
+  return (strcmp (grl_media_get_id (a), grl_media_get_id (b)) == 0);
 }
 
 void


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