From 848de2dfec3f545801574a6219df8f081d66c5e0 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 23 Sep 2009 08:41:03 +0300 Subject: [PATCH] Rpm's allocators dont return on OOM, remove unnecessary check --- python/header-py.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/header-py.c b/python/header-py.c index 765331f..e8b7bd9 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -537,11 +537,7 @@ PyObject * hdrLoad(PyObject * self, PyObject * args, PyObject * kwds) /* copy is needed to avoid surprises from data swab in headerLoad(). */ h = headerCopyLoad(obj); if (!h) { - if (errno == ENOMEM) { - PyErr_SetString(pyrpmError, "out of memory"); - } else { - PyErr_SetString(pyrpmError, "bad header"); - } + PyErr_SetString(pyrpmError, "bad header"); return NULL; } headerConvert(h, HEADERCONV_RETROFIT_V3); -- 2.7.4