The following commit has been merged in the upstream branch:
commit 3bbb218e2682de2d566cc66115a108a56c04f42c
Author: Justus Winter <[email protected]>
Date:   Fri Jul 19 08:53:53 2013 +0200

    Fix error handling macro E
    
    Previously the macro argument err was expanded and thus potentially
    evaluated multiple times. This is fine for simple values or pure
    functions, but not for say iohelp_create_iouser. Fix this by
    evaluating the macro argument only once.

diff --git a/libiohelp/iouser-create.c b/libiohelp/iouser-create.c
index f1dd2f0..980c8a1 100644
--- a/libiohelp/iouser-create.c
+++ b/libiohelp/iouser-create.c
@@ -33,8 +33,9 @@ iohelp_create_iouser (struct iouser **user, struct idvec 
*uids,
   return 0;
 }
 
-#define E(err)                         \
+#define E(err_)                                \
        do {                            \
+         error_t err = err_;           \
          if (err)                      \
            {                           \
              *user = 0;                \

-- 
Debian GNU Hurd packaging

Reply via email to