Mercurial > hg > xemacs-beta
comparison src/lstream.c @ 2383:9c7decce1d05
[xemacs-hg @ 2004-11-12 17:16:27 by james]
Don't call the flusher if the writer returned an error.
author | james |
---|---|
date | Fri, 12 Nov 2004 17:16:30 +0000 |
parents | ecf1ebac70d8 |
children | 3d8143fc88e1 |
comparison
equal
deleted
inserted
replaced
2382:ac4ffbd57062 | 2383:9c7decce1d05 |
---|---|
383 error_occurred = 1; | 383 error_occurred = 1; |
384 break; | 384 break; |
385 } | 385 } |
386 } | 386 } |
387 | 387 |
388 if (lstr->imp->flusher) | 388 if (!error_occurred && lstr->imp->flusher) |
389 error_occurred = (lstr->imp->flusher) (lstr) < 0; | 389 error_occurred = (lstr->imp->flusher) (lstr) < 0; |
390 | 390 |
391 if (data == orig_data && error_occurred) | 391 if (data == orig_data && error_occurred) |
392 return -1; | 392 return -1; |
393 | 393 |