From b557c8d403e527d81fe6284f0522af174c84382b Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 21 Dec 2008 18:34:02 +0000 Subject: [PATCH] Assert that realloc() did. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3490 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/mgt_param.c | 1 + 1 file changed, 1 insertion(+) diff --git a/varnish-cache/bin/varnishd/mgt_param.c b/varnish-cache/bin/varnishd/mgt_param.c index 9c9febd2..6b6bc41f 100644 --- a/varnish-cache/bin/varnishd/mgt_param.c +++ b/varnish-cache/bin/varnishd/mgt_param.c @@ -908,6 +908,7 @@ MCF_AddParams(const struct parspec *ps) n++; } parspec = realloc(parspec, (nparspec + n + 1) * sizeof *parspec); + XXXAN(parspec); for (pp = ps; pp->name != NULL; pp++) parspec[nparspec++] = pp; parspec[nparspec] = NULL; -- 2.39.5