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

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