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

guillem pushed a commit to branch master
in repository dpkg.

commit ecab1a59e2d2e2be01c08cd9ebe1f783eb26e5ae
Author: Guillem Jover <[email protected]>
Date:   Wed Mar 15 13:33:09 2017 +0100

    dselect: Assume that m_malloc() never returns NULL
    
    The m_-prefixed functions are already taking care of that.
---
 dselect/cxx-support.cc | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/dselect/cxx-support.cc b/dselect/cxx-support.cc
index 35f2543..dc3b36d 100644
--- a/dselect/cxx-support.cc
+++ b/dselect/cxx-support.cc
@@ -24,7 +24,6 @@
 
 #include <sys/types.h>
 
-#include <assert.h>
 #include <stdlib.h>
 #ifdef HAVE_CXXABI_H
 #include <cxxabi.h>
@@ -37,23 +36,13 @@
 extern void *
 operator new(size_t size) DPKG_ATTR_THROW(std::bad_alloc)
 {
-       void *p;
-
-       p = m_malloc(size);
-       assert(p);
-
-       return p;
+       return m_malloc(size);
 }
 
 extern void *
 operator new[](size_t size) DPKG_ATTR_THROW(std::bad_alloc)
 {
-       void *p;
-
-       p = m_malloc(size);
-       assert(p);
-
-       return p;
+       return m_malloc(size);
 }
 
 extern void

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

Reply via email to