minibsdiff
minibsdiff copied to clipboard
Fix V522 warning from PVS-Studio Static Analyzer
I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio.
Warning: Dereferencing of the null pointer 'buf' might take place. The potential null pointer is passed into 'write_file' function. Inspect the second argument.