diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-17 18:47:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-17 18:47:37 +0000 |
commit | 0e197b417ae104d1c02139e899af810a867be42f (patch) | |
tree | e72b519925d553c5b79e86e2e172940dc21c7b75 /screen-write.c | |
parent | ff61eee294124bc83f399e0027de1c9d7a9d9e86 (diff) | |
download | rtmux-0e197b417ae104d1c02139e899af810a867be42f.tar.gz rtmux-0e197b417ae104d1c02139e899af810a867be42f.tar.bz2 rtmux-0e197b417ae104d1c02139e899af810a867be42f.zip |
Tidy a few warnings.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c index e6d9cb88..037d1b3e 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.24 2009-01-11 23:31:46 nicm Exp $ */ +/* $Id: screen-write.c,v 1.25 2009-01-17 18:47:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -589,7 +589,8 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc) */ for (xx = s->cx + 1; xx < s->cx + width; xx++) { ic = grid_view_get_cell(gd, xx, s->cy); - ic->flags |= GRID_FLAG_PADDING; + if (ic != NULL) + ic->flags |= GRID_FLAG_PADDING; } /* Write the actual cell. */ |