This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

commit 24ee92a45643e428717b052b50e91d62029ad71f
Author: Guillem Jover <[email protected]>
Date:   Fri Dec 21 10:25:36 2012 +0100

    libdpkg: Change m_vasprintf() to assume it is more prone to succeed
---
 lib/dpkg/mlib.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/dpkg/mlib.c b/lib/dpkg/mlib.c
index 8f99e51..bd68e9a 100644
--- a/lib/dpkg/mlib.c
+++ b/lib/dpkg/mlib.c
@@ -89,13 +89,11 @@ m_vasprintf(char **strp, const char *fmt, va_list args)
   int n;
 
   n = vasprintf(strp, fmt, args);
+  if (n >= 0)
+    return n;
 
   onerr_abort++;
-  if (n < 0)
-    ohshite(_("failed to allocate memory"));
-  onerr_abort--;
-
-  return n;
+  ohshite(_("failed to allocate memory"));
 }
 
 int

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/dpkg/dpkg.git


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to