clang warnings

This commit is contained in:
Olof Hagsand 2019-12-23 14:03:42 +00:00
parent 7fb452f96e
commit a87e9cb246
9 changed files with 11 additions and 11 deletions

View file

@ -388,7 +388,7 @@ xml2buf(FILE *f,
goto done;
}
memcpy(buf0, hdr, sizeof(hdr));
if (fwrite(buf0, sizeof(char), len, f) < 0){
if (fwrite(buf0, sizeof(char), len, f) == 0){
clicon_err(OE_XML, errno, "fwrite");
goto done;
}