mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-09 22:27:08 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user