clang warnings
This commit is contained in:
parent
7fb452f96e
commit
a87e9cb246
9 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue