1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-05 19:01:18 +03:00

Chasing dead assignments reported by clang-scan

* SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c
  relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c
  xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations,
  but this led to a few real bugs and some part not yet understood
  (relaxng/interleave)
This commit is contained in:
Daniel Veillard
2009-09-07 14:58:47 +02:00
parent d44b936499
commit 594e5dfb48
17 changed files with 15 additions and 27 deletions

View File

@ -2416,6 +2416,7 @@ libxml_prev(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
res = (xmlNodePtr) attr->prev;
}
break;
case XML_NAMESPACE_DECL:
res = NULL;
break;