[libxml2/2.9] Initialize XPath floating-point globals



commit 0febec8b066a65ef7c70a989314b36495396e4a5
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sun Apr 3 17:09:50 2022 +0200

    Initialize XPath floating-point globals
    
    Should fix #138.

 xpath.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/xpath.c b/xpath.c
index 2da591ce..78806bfd 100644
--- a/xpath.c
+++ b/xpath.c
@@ -488,9 +488,9 @@ int wrap_cmp( xmlNodePtr x, xmlNodePtr y );
  *                                                                     *
  ************************************************************************/
 
-double xmlXPathNAN;
-double xmlXPathPINF;
-double xmlXPathNINF;
+double xmlXPathNAN = 0.0;
+double xmlXPathPINF = 0.0;
+double xmlXPathNINF = 0.0;
 
 /**
  * xmlXPathInit:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]