aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-25 12:00:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-25 12:00:30 +0000
commitb5fda7ad2a3a45e9a4d54d929b03a6b28bf67c37 (patch)
tree8e93444ee745237be65c347895d158f62b600973 /grid.c
parente97e0d7e547f342e8166cabf30cf65c74b562173 (diff)
downloadrtmux-b5fda7ad2a3a45e9a4d54d929b03a6b28bf67c37.tar.gz
rtmux-b5fda7ad2a3a45e9a4d54d929b03a6b28bf67c37.tar.bz2
rtmux-b5fda7ad2a3a45e9a4d54d929b03a6b28bf67c37.zip
Spacing, warning nits.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/grid.c b/grid.c
index 551a7dc9..2955e8ba 100644
--- a/grid.c
+++ b/grid.c
@@ -725,7 +725,7 @@ void
grid_reflow_split(struct grid *dst, u_int *py, struct grid_line *src_gl,
u_int new_x, u_int offset)
{
- struct grid_line *dst_gl;
+ struct grid_line *dst_gl = NULL;
u_int to_copy;
/* Loop and copy sections of the source line. */
@@ -756,7 +756,8 @@ grid_reflow_split(struct grid *dst, u_int *py, struct grid_line *src_gl,
}
/* Last line is not wrapped. */
- dst_gl->flags &= ~GRID_LINE_WRAPPED;
+ if (dst_gl != NULL)
+ dst_gl->flags &= ~GRID_LINE_WRAPPED;
}
/* Move line data. */