diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-02-05 14:01:23 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-02-05 14:01:23 +0000 |
commit | 39904f7fc6e64356fe23de6264d5b03bec280d75 (patch) | |
tree | 0794a32b596d10982f8987453b08f3578a18858a /grid.c | |
parent | e3d71d9bdfa31fb658794759f07af43d53253e5f (diff) | |
parent | 3dddc11603b1bd66b5586b47795716e87921a096 (diff) | |
download | rtmux-39904f7fc6e64356fe23de6264d5b03bec280d75.tar.gz rtmux-39904f7fc6e64356fe23de6264d5b03bec280d75.tar.bz2 rtmux-39904f7fc6e64356fe23de6264d5b03bec280d75.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1048,14 +1048,14 @@ grid_duplicate_lines(struct grid *dst, u_int dy, struct grid *src, u_int sy, srcl->cellsize * sizeof *dstl->celldata); } else dstl->celldata = NULL; - if (srcl->extdsize != 0) { dstl->extdsize = srcl->extdsize; dstl->extddata = xreallocarray(NULL, dstl->extdsize, sizeof *dstl->extddata); memcpy(dstl->extddata, srcl->extddata, dstl->extdsize * sizeof *dstl->extddata); - } + } else + dstl->extddata = NULL; sy++; dy++; |