summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2015-01-23 20:26:36 +0000
committerokan <okan>2015-01-23 20:26:36 +0000
commitd8fa58bb6256d5a499d7cd957b95b5b052cf16a2 (patch)
tree1796e410674b2030b631e55eef9f4bacf50577bb
parent5146f661bd970ea1aa7e05b3647bd9dc8a555a81 (diff)
downloadcwm-d8fa58bb6256d5a499d7cd957b95b5b052cf16a2.tar.gz
cwm-d8fa58bb6256d5a499d7cd957b95b5b052cf16a2.tar.xz
cwm-d8fa58bb6256d5a499d7cd957b95b5b052cf16a2.zip
use malloc over calloc here
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 8eec4a3..1c75285 100644
--- a/conf.c
+++ b/conf.c
@@ -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);
 }