[mousetweaks] Fix sequence-point warning - bgo#583993



commit aafef7ba9a4b20e7aa8e611fe3ea2d4e023857a3
Author: Gerd Kohlberger <gerdk src gnome org>
Date:   Thu May 28 11:52:33 2009 +0200

    Fix sequence-point warning - bgo#583993
---
 src/mt-pidfile.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mt-pidfile.c b/src/mt-pidfile.c
index 7953f8c..3fa9a75 100644
--- a/src/mt-pidfile.c
+++ b/src/mt-pidfile.c
@@ -194,8 +194,9 @@ mt_pidfile_create (void)
     }
 
     snprintf (t, sizeof(t), "%lu\n", (unsigned long) getpid ());
+    l = strlen (t);
 
-    if (write (fd, t, l = strlen(t)) != l) {
+    if (write (fd, t, l) != l) {
 	int saved_errno = errno;
 	unlink (fn);
 	errno = saved_errno;



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