commit-hurd
[Top][All Lists]
Advanced

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

[SCM] Debian GNU Hurd packaging branch, upstream, updated. upstream/hurd


From: Samuel Thibault
Subject: [SCM] Debian GNU Hurd packaging branch, upstream, updated. upstream/hurd/20130707-5-gde8b182
Date: Sat, 27 Jul 2013 22:25:34 +0000

The following commit has been merged in the upstream branch:
commit 3bbb218e2682de2d566cc66115a108a56c04f42c
Author: Justus Winter <address@hidden>
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

[Prev in Thread] Current Thread [Next in Thread]