aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2015-01-23 20:26:36 +0000
committerokan2015-01-23 20:26:36 +0000
commit57ffed7fbdbdcf935370a75f27977ce935f84a77 (patch)
treebaa477c7ffbb50d0fa1c9c77068f9382d1169a4b /conf.c
parent72dff301052179e201744eb75a8e79a19d50d79d (diff)
downloadcwm-57ffed7fbdbdcf935370a75f27977ce935f84a77.tar.gz
use malloc over calloc here
Diffstat (limited to '')
-rw-r--r--conf.c4
1 files 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 <sys/types.h>
@@ -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);
}