diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-11-15 23:24:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-11-15 23:26:58 (GMT) |
commit | 9b7e4ffb6c5f7534e4ba11d5798b4eb74d4a2a70 (patch) | |
tree | cde604068dbe270c51a6790189c30594e0d78b70 /qtools | |
parent | e986e0039de21791bd1fbb1f59b13f58c4a46324 (diff) | |
download | Doxygen-9b7e4ffb6c5f7534e4ba11d5798b4eb74d4a2a70.zip Doxygen-9b7e4ffb6c5f7534e4ba11d5798b4eb74d4a2a70.tar.gz Doxygen-9b7e4ffb6c5f7534e4ba11d5798b4eb74d4a2a70.tar.bz2 |
Fixed several Coverity warnings
Diffstat (limited to 'qtools')
-rw-r--r-- | qtools/qfile_unix.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qtools/qfile_unix.cpp b/qtools/qfile_unix.cpp index 0422fb4..dd41c4e 100644 --- a/qtools/qfile_unix.cpp +++ b/qtools/qfile_unix.cpp @@ -550,6 +550,7 @@ int QFile::writeBlock( const char *p, uint len ) return -1; } #endif + if (p==0) return 0; int nwritten; // number of bytes written if ( isRaw() ) // raw file nwritten = (int)WRITE( fd, p, len ); |