Commit 020564ef
020564ef6fc0Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified
Description
fix: suppress fread unused result warning in spinel_parse.c
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- 020564ef6fc0
- Parent
- 5de924a369e4
spinel_parse.cmodifiedView file
@@ -755,8 +755,8 @@
755755
long len = ftell(f);756756
fseek(f, 0, SEEK_SET);757757
char *buf = malloc(len + 1);758-
fread(buf, 1, len, f);759-
buf[len] = '\0';758+
size_t nread = fread(buf, 1, len, f);759+
buf[nread] = '\0';760760
fclose(f);761761
return buf;762762
}