Mercurial > emacs
diff lib-src/movemail.c @ 112441:2097405cdc11
Merge: Check return values of some library calls.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 22 Jan 2011 23:32:08 -0800 |
parents | b5017c649dfb |
children |
line wrap: on
line diff
--- a/lib-src/movemail.c Sat Jan 22 20:34:48 2011 -0800 +++ b/lib-src/movemail.c Sat Jan 22 23:32:08 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 */