[vlc-commits] access/satip: removal of unnecessary if

Filip Roséen git at videolan.org
Mon Jul 18 18:01:02 CEST 2016


vlc | branch: master | Filip Roséen <filip at videolabs.io> | Mon Jul 18 17:52:31 2016 +0200| [a758f5a02992cd3ae6355dabeb967323fe7786d6] | committer: Hugo Beauzée-Luyssen

access/satip: removal of unnecessary if

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/access/satip.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/access/satip.c b/modules/access/satip.c
index 6596fa4..6daf683 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -747,8 +747,7 @@ static int satip_open(access_t *access) {
     return VLC_SUCCESS;
 
 error:
-    if (psz_lower_url)
-        free(psz_lower_url);
+    free(psz_lower_url);
 
     vlc_UrlClean(&url);
     satip_close(access);



More information about the vlc-commits mailing list