[telepathy-stream-engine/master] Move non-assert code out of assert to be able to build without it

Olivier Crête olivier.crete at collabora.co.uk
Thu Dec 3 00:01:07 PST 2009


---
 src/stream-engine-main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/stream-engine-main.c b/src/stream-engine-main.c
index b5b78a3..8de49b2 100644
--- a/src/stream-engine-main.c
+++ b/src/stream-engine-main.c
@@ -223,7 +223,9 @@ int main(int argc, char **argv)
 
   uid = getuid();
   if (uid != 0 && geteuid() == 0) {
-    g_assert(setresuid(uid, uid, uid) >= 0);
+    gint ret;
+    ret = setresuid(uid, uid, uid)
+    g_assert(ret >= 0);
     g_assert(getuid() == uid);
     g_assert(geteuid() == uid);
   }
-- 
1.5.6.5



More information about the telepathy-commits mailing list