1
1
Yury V. Zaytsev fbc013421c Ticket #2861: additional error handling in edit_save_block().
If edit->column_highlight is on and the disk is so full that the editor
is unable even to write the magic (r <= 0), then subsequent if (len)
check might fail, since the value of len is undefined.

The solution is to initialize len with a non-zero value, so that the
function properly returns an error value in all cases (adding an
explicit return 0; is also possible, but then one must take care of
closing file descriptors, which is less convenient).

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2012-09-10 14:29:53 +03:00
..
2012-09-05 14:29:53 +03:00
2012-08-27 16:16:24 +04:00
2012-08-27 16:16:24 +04:00
2012-07-17 17:04:05 +04:00
2011-03-21 23:55:52 +02:00
2012-07-17 17:04:05 +04:00
2010-11-24 10:27:47 +03:00
2012-07-17 17:04:05 +04:00
2010-11-24 10:51:31 +03:00
2012-07-17 17:04:05 +04:00