Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc

respectively.

ok okan.
This commit is contained in:
oga
2008-04-16 13:38:09 +00:00
parent f67772be65
commit f473dc3d12
5 changed files with 11 additions and 16 deletions

2
conf.c
View File

@@ -360,7 +360,7 @@ conf_bindname(struct conf *c, char *name, char *binding)
return;
current_binding->callback = kbfunc_cmdexec;
current_binding->argument = strdup(binding);
current_binding->argument = xstrdup(binding);
current_binding->flags = 0;
TAILQ_INSERT_TAIL(&c->keybindingq, current_binding, entry);
return;