Marcus Meissner : msxml3: Mirror the NULL checking logic (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Mar 10 14:38:28 CDT 2014


Module: wine
Branch: master
Commit: 6e25c34f2f4ef0a7f3151fca6768699585f2eeeb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6e25c34f2f4ef0a7f3151fca6768699585f2eeeb

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat Mar  8 09:43:55 2014 +0100

msxml3: Mirror the NULL checking logic (Coverity).

---

 dlls/msxml3/mxwriter.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msxml3/mxwriter.c b/dlls/msxml3/mxwriter.c
index 01e21a7..6c2eeb8 100644
--- a/dlls/msxml3/mxwriter.c
+++ b/dlls/msxml3/mxwriter.c
@@ -1202,7 +1202,7 @@ static void mxwriter_write_starttag(mxwriter *writer, const WCHAR *qname, int le
     write_node_indent(writer);
 
     write_output_buffer(writer->buffer, ltW, 1);
-    write_output_buffer(writer->buffer, qname, len);
+    write_output_buffer(writer->buffer, qname ? qname : emptyW, qname ? len : 0);
     writer_inc_indent(writer);
 }
 




More information about the wine-cvs mailing list