[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] =?utf-8?q?HG=3A_xine-lib-1=2E2=3A_Add_=5Fx=5Fassert?=
From:       Petri_Hintukainen via Xine-cvslog <xine-cvslog () lists ! sourceforge ! net
Date:       2017-11-16 11:17:49
Message-ID: c4c0819509f624f55f3a.1510829739 () hg ! debian ! org
[Download RAW message or body]

# HG changeset patch
# User Petri Hintukainen <phintuka@users.sourceforge.net>
# Date 1510829739 -7200
# Node ID c4c0819509f624f55f3ab6a58d9151c70905376a
# Branch  default
# Parent  078c62971e896acaaa443ac8c7dadb1cb35e93a5
Add _x_assert

diff --git a/src/input/http_helper.h b/src/input/http_helper.h
--- a/src/input/http_helper.h
+++ b/src/input/http_helper.h
@@ -67,6 +67,8 @@
     return strdup (url);
 
   cut = strstr (base, "://");
+  _x_assert(cut); /* base is required to be valid according to _x_parse_url */
+
   if (url[0] == '/') {
     /* absolute - base up to first '/' after "://", then url */
     cut = strchr (cut + 3, '/');

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic