2018-10-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rivwebcapi's 'RD_ListCartCuts()' and
	'RD_ListCartsCuts()' functions that threw a segfault if the WebAPI
	returned an error response.
This commit is contained in:
Fred Gleason 2018-10-17 12:29:27 -04:00
parent 587aaa5346
commit 22541425cf
3 changed files with 6 additions and 0 deletions

View File

@ -17811,3 +17811,7 @@
* Disabled the 'More than half the audio will be faded...' warning * Disabled the 'More than half the audio will be faded...' warning
in the 'Edit Audio' dialog in rdlibrary(1) if the 'No Fade on in the 'Edit Audio' dialog in rdlibrary(1) if the 'No Fade on
Segue Out' checkbox is ticked. Segue Out' checkbox is ticked.
2018-10-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rivwebcapi's 'RD_ListCartCuts()' and
'RD_ListCartsCuts()' functions that threw a segfault if the WebAPI
returned an error response.

View File

@ -357,6 +357,7 @@ int RD_ListCartCuts(struct rd_cart *carts[],
* Setup the CURL call * Setup the CURL call
*/ */
memset(&xml_data,0,sizeof(xml_data)); memset(&xml_data,0,sizeof(xml_data));
xml_data.cut_ptr=-1;
parser=XML_ParserCreate(NULL); parser=XML_ParserCreate(NULL);
XML_SetUserData(parser,&xml_data); XML_SetUserData(parser,&xml_data);
XML_SetElementHandler(parser,__ListCartCutsElementStart, XML_SetElementHandler(parser,__ListCartCutsElementStart,

View File

@ -362,6 +362,7 @@ int RD_ListCartsCuts(struct rd_cart *carts[],
*/ */
memset(&xml_data,0,sizeof(xml_data)); memset(&xml_data,0,sizeof(xml_data));
xml_data.cart_ptr=-1; xml_data.cart_ptr=-1;
xml_data.cut_ptr=-1;
parser=XML_ParserCreate(NULL); parser=XML_ParserCreate(NULL);
XML_SetUserData(parser,&xml_data); XML_SetUserData(parser,&xml_data);
XML_SetElementHandler(parser,__ListCartsCutsElementStart, XML_SetElementHandler(parser,__ListCartsCutsElementStart,