aboutsummaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2017-10-07 14:54:45 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2017-10-07 15:22:57 +0200
commit5af594d8bc55121ae454cba4d05793d1db7ff612 (patch)
treea42a86afb753e99bdaaacb9cbe48db7bbe57febe /uri.c
parent0c91391683b41c718f5e82a3ce41735d95eeb049 (diff)
downloadlibxml2-5af594d8bc55121ae454cba4d05793d1db7ff612.tar.gz
Fix comparison of nodesets to strings
Fix two bugs in xmlXPathNodeValHash which could lead to errors when comparing nodesets to strings: - Only use contents of text nodes to compute the hash for element nodes. Comments, PIs, and other node types don't affect the string-value and must be ignored. - Reset `string` to NULL for node types other than text. Reported by Aleksei on the mailing list: https://mail.gnome.org/archives/xml/2017-September/msg00016.html
Diffstat (limited to 'uri.c')
0 files changed, 0 insertions, 0 deletions