[libxml2] Initialize XPath floating-point globals
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Initialize XPath floating-point globals
- Date: Sun, 3 Apr 2022 15:40:00 +0000 (UTC)
commit 0e9776b070524c14513915c2af4c57608f1b7a74
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 0b31bc07..26e9d967 100644
--- a/xpath.c
+++ b/xpath.c
@@ -475,9 +475,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]