]> granicus.if.org Git - libexpat/commitdiff
xmlwf: Address Clang Static Analyzer warning
authorSebastian Pipping <sebastian@pipping.org>
Mon, 28 Aug 2017 19:38:44 +0000 (21:38 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 28 Aug 2017 19:38:44 +0000 (21:38 +0200)
expat/Changes
expat/xmlwf/xmlwf.c

index 2c0cf103853906f90be556306d6bd3bf9e7c5b62..26df63db2d1b3483a1035732a53ca20619f2bbd6 100644 (file)
@@ -19,6 +19,7 @@ Release 2.2.5 ???????????????????
        #126 #127  Windows: Fix compilation for Visual Studio 2012
             #129  examples: Fix compilation for XML_UNICODE_WCHAR_T
             #130  benchmark: Fix compilation for XML_UNICODE_WCHAR_T
+                  xmlwf: Address Clang Static Analyzer warning
 
         Special thanks to:
             Benbuck Nason
index aca164155dd9fabef7ac9addf6a393e6279288ef..a2e88df504c0d766d91f2d765c02d20697280948 100644 (file)
@@ -30,6 +30,7 @@
    USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
+#include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>
@@ -105,6 +106,7 @@ attributeValue(FILE *fp, const XML_Char *s)
 {
   puttc(T('='), fp);
   puttc(T('"'), fp);
+  assert(s);
   for (;;) {
     switch (*s) {
     case 0: