[nautilus] Don't ignore the return value of write() (#617092).
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't ignore the return value of write() (#617092).
- Date: Wed, 28 Apr 2010 16:59:06 +0000 (UTC)
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]