xmlwf: Address Clang Static Analyzer warning

This commit is contained in:
Sebastian Pipping 2017-08-28 21:38:44 +02:00
parent 07643fcd85
commit e4661bfb85
2 changed files with 3 additions and 0 deletions

View 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

View 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: