Package: matanza / 0.13+ds2-1

03-cppcheck.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Suppress a cppcheck false positive.
 The contents of 'buf' is always initialized by the XmlUtf16Encode or
 the XmlUtf8Encode function, whichever one is invoked.
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2011-01-09

--- a/xmlparse.c
+++ b/xmlparse.c
@@ -1488,6 +1488,7 @@
 	  return XML_ERROR_BAD_CHAR_REF;
 	if (characterDataHandler) {
 	  XML_Char buf[XML_ENCODE_MAX];
+	  // cppcheck-suppress uninitvar
 	  characterDataHandler(handlerArg, buf, XmlEncode(n, (ICHAR *)buf));
 	}
 	else if (defaultHandler)