diff options
author | okan | 2015-01-23 20:26:36 +0000 |
---|---|---|
committer | okan | 2015-01-23 20:26:36 +0000 |
commit | 57ffed7fbdbdcf935370a75f27977ce935f84a77 (patch) | |
tree | baa477c7ffbb50d0fa1c9c77068f9382d1169a4b | |
parent | 72dff301052179e201744eb75a8e79a19d50d79d (diff) | |
download | cwm-57ffed7fbdbdcf935370a75f27977ce935f84a77.tar.gz |
use malloc over calloc here
-rw-r--r-- | conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |