mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
xmlwf: Address Clang Static Analyzer warning
This commit is contained in:
parent
07643fcd85
commit
e4661bfb85
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue