[glib] gwakeup: Fix uninitialized variable from previous commit
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gwakeup: Fix uninitialized variable from previous commit
- Date: Fri, 25 Jan 2013 17:06:38 +0000 (UTC)
commit cbd7225e7072e6c886e7370f999299d25906a14b
Author: Colin Walters <walters verbum org>
Date: Fri Jan 25 12:06:04 2013 -0500
gwakeup: Fix uninitialized variable from previous commit
We really don't want to infloop here...
glib/gwakeup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gwakeup.c b/glib/gwakeup.c
index ad92d56..5e03b5d 100644
--- a/glib/gwakeup.c
+++ b/glib/gwakeup.c
@@ -241,7 +241,7 @@ g_wakeup_signal (GWakeup *wakeup)
else
{
do
- write (wakeup->fds[1], &one, 1);
+ res = write (wakeup->fds[1], &one, 1);
while (G_UNLIKELY (res == -1 && errno == EINTR));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]