Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | [PATCH] Fix a compile error |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Fix a compile error by conditional using 'catal' since catal |
| 6 | is only defined when LIBXML_CATALOG_ENABLED is enabled. |
| 7 | |
| 8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 9 | --- |
| 10 | LibXML.xs | 2 ++ |
| 11 | 1 file changed, 2 insertions(+) |
| 12 | |
| 13 | diff --git a/LibXML.xs b/LibXML.xs |
| 14 | index 66da04b..45da681 100644 |
| 15 | --- a/LibXML.xs |
| 16 | +++ b/LibXML.xs |
| 17 | @@ -2777,9 +2777,11 @@ _default_catalog( self, catalog ) |
| 18 | xmlCatalogPtr catal = INT2PTR(xmlCatalogPtr,SvIV(SvRV(catalog))); |
| 19 | #endif |
| 20 | INIT: |
| 21 | +#ifdef LIBXML_CATALOG_ENABLED |
| 22 | if ( catal == NULL ) { |
| 23 | croak( "empty catalog\n" ); |
| 24 | } |
| 25 | +#endif |
| 26 | CODE: |
| 27 | warn( "this feature is not implemented" ); |
| 28 | RETVAL = 0; |
| 29 | -- |
| 30 | 1.7.10.4 |
| 31 | |