From 57ffed7fbdbdcf935370a75f27977ce935f84a77 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 23 Jan 2015 20:26:36 +0000 Subject: use malloc over calloc here --- conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.c b/conf.c index 2439659..d4f5ebe 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.182 2015/01/19 14:54:16 okan Exp $ + * $OpenBSD: conf.c,v 1.183 2015/01/23 20:26:36 okan Exp $ */ #include @@ -96,7 +96,7 @@ conf_ignore(struct conf *c, const char *name) { struct winname *wn; - wn = xcalloc(1, sizeof(*wn)); + wn = xmalloc(sizeof(*wn)); wn->name = xstrdup(name); TAILQ_INSERT_TAIL(&c->ignoreq, wn, entry); } -- cgit v1.2.3-2-gb3c3