Mercurial > emacs
diff lib-src/movemail.c @ 112440:b5017c649dfb
Check return values of some library calls.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 22 Jan 2011 23:30:19 -0800 |
parents | 56d3e9c28eb0 |
children |
line wrap: on
line diff
--- a/lib-src/movemail.c Sat Jan 22 20:33:12 2011 -0800 +++ b/lib-src/movemail.c Sat Jan 22 23:30:19 2011 -0800 @@ -488,7 +488,8 @@ #ifdef MAIL_USE_SYSTEM_LOCK if (! preserve_mail) { - ftruncate (indesc, 0L); + if (ftruncate (indesc, 0L) != 0) + pfatal_with_name (inname); } #endif /* MAIL_USE_SYSTEM_LOCK */