[vlc-commits] [Git][videolan/vlc][master] vorepository: fix bad failure check

François Cartegnie (@fcartegnie) gitlab at videolan.org
Fri Dec 31 10:52:43 UTC 2021



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
1fc8b688 by Lyndon Brown at 2021-12-31T10:27:19+00:00
vorepository: fix bad failure check

- - - - -


1 changed file:

- modules/misc/addons/vorepository.c


Changes:

=====================================
modules/misc/addons/vorepository.c
=====================================
@@ -374,7 +374,7 @@ static int Retrieve( addons_finder_t *p_finder, addon_entry_t *p_entry )
     {
         /* Relative path */
         char *psz_uri;
-        if ( ! asprintf( &psz_uri, ADDONS_REPO_SCHEMEHOST"%s", psz_archive_uri ) )
+        if ( asprintf( &psz_uri, ADDONS_REPO_SCHEMEHOST"%s", psz_archive_uri ) == -1 )
         {
             free( psz_archive_uri );
             return VLC_ENOMEM;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1fc8b688273c143bf404d1073ed2066919570db9

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1fc8b688273c143bf404d1073ed2066919570db9
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list