diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-09-04 14:01:18 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-09-04 14:01:18 +0100 |
commit | 634a2bb647bc77c3679f63da3bf877d252b79b1f (patch) | |
tree | 5ff2e96007072847cde7db479369167e888b59cb | |
parent | 233d14f4da86ee383815b870d547fcd2e39b8c53 (diff) | |
parent | 9b45ba82fd38d30d9f6bbe3f659e33a32b3b5ace (diff) | |
download | rtmux-634a2bb647bc77c3679f63da3bf877d252b79b1f.tar.gz rtmux-634a2bb647bc77c3679f63da3bf877d252b79b1f.tar.bz2 rtmux-634a2bb647bc77c3679f63da3bf877d252b79b1f.zip |
Merge branch 'obsd-master'
-rw-r--r-- | cmd-load-buffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c index f5a080be..bca9a860 100644 --- a/cmd-load-buffer.c +++ b/cmd-load-buffer.c @@ -96,12 +96,10 @@ cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item) const char *bufname = args_get(args, 'b'); char *path; - cdata = xmalloc(sizeof *cdata); + cdata = xcalloc(1, sizeof *cdata); cdata->item = item; if (bufname != NULL) cdata->name = xstrdup(bufname); - else - cdata->name = NULL; if (args_has(args, 'w') && tc != NULL) { cdata->client = tc; cdata->client->references++; |