comparing return value of fwrite against < 0 is never true.
Created attachment 11634 [details] [review] check return value correctly
*** This bug has been marked as a duplicate of bug 11812 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.