From: Victor Julien Date: Fri, 13 Dec 2013 11:20:00 +0000 (+0100) Subject: realloc error handling: remove unnecessary else branch X-Git-Tag: suricata-2.0beta2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9874c1a83b511338ee9b9825327d92d754d06d3b;p=thirdparty%2Fsuricata.git realloc error handling: remove unnecessary else branch --- diff --git a/src/util-mpm.c b/src/util-mpm.c index 7b49a64f05..184d6054f1 100644 --- a/src/util-mpm.c +++ b/src/util-mpm.c @@ -151,9 +151,7 @@ int32_t MpmFactoryRegisterMpmCtxProfile(DetectEngineCtx *de_ctx, const char *nam SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); exit(EXIT_FAILURE); } - else { - items = ptmp; - } + items = ptmp; de_ctx->mpm_ctx_factory_container->items = items;