blob: 1dd9fb37579d678a1fe328883678b8722da18c19 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001[PATCH] Fix a compile error
2
3Upstream-Status: Pending
4
5Fix a compile error by conditional using 'catal' since catal
6is only defined when LIBXML_CATALOG_ENABLED is enabled.
7
8Signed-off-by: Roy Li <rongqing.li@windriver.com>
9---
10 LibXML.xs | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/LibXML.xs b/LibXML.xs
14index 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--
301.7.10.4
31