[nautilus] Don't ignore the return value of write() (#617092).



commit 90b32ff314a141417c2b8e3691766910420ca25e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 28 19:00:58 2010 +0200

    Don't ignore the return value of write() (#617092).

 src/nautilus-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 717dfa3..90ba959 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -668,7 +668,7 @@ do_upgrades_once (NautilusApplication *application,
 			if (res == -1) {
 				fd = g_creat (updated, 0600);
 				if (fd != -1) {
-					write (fd, message, strlen (message));
+					res = write (fd, message, strlen (message));
 					close (fd);
 				}
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]