[vlc-commits] webservices: acoustid: fix asprintf return code breakage

Francois Cartegnie git at videolan.org
Sun Jul 24 22:38:05 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jul 24 22:37:15 2016 +0200| [8a22ae32097961e566c6b3ddc0e1ac4f6902d9b4] | committer: Francois Cartegnie

webservices: acoustid: fix asprintf return code breakage

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a22ae32097961e566c6b3ddc0e1ac4f6902d9b4
---

 modules/misc/webservices/acoustid.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/webservices/acoustid.c b/modules/misc/webservices/acoustid.c
index 2721216..2c9fd48 100644
--- a/modules/misc/webservices/acoustid.c
+++ b/modules/misc/webservices/acoustid.c
@@ -158,7 +158,7 @@ int DoAcoustIdWebRequest( vlc_object_t *p_obj, acoustid_fingerprint_t *p_data )
     if( unlikely(asprintf( &psz_url, "http://fingerprint.videolan.org/"
                            "acoustid.php?meta=recordings+tracks+usermeta+"
                            "releases&duration=%d&fingerprint=%s",
-                           p_data->i_duration, p_data->psz_fingerprint )) )
+                           p_data->i_duration, p_data->psz_fingerprint ) < 1 ) )
          return VLC_EGENERIC;
 
     msg_Dbg( p_obj, "Querying AcoustID from %s", psz_url );



More information about the vlc-commits mailing list