Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
@kcc this changes add a check for ferror() . Previous implementation doesn't check for that possible error.
Comment Actions
@kcc So, if fread() fails, previous implementation will return true. Do you think that is ok?
Comment Actions
@kcc Thanks for your comments. But don't you think this would be better for future uses of ExecuteCommandAndReadOutput() ? To return false if fread fails?
Comment Actions
ain't broke don't fix it
Also, if you can't prepare a test for a fix (or don't have time for a test), the fix may not be worth it.
(This is not always true, but frequently).