The branch, master has been updated
       via  ec75f9d1a36b6f46e7ec6597d295f113c4aa12b3 (commit)
      from  6405fceee20c54aab10c1a3a2863861d1c0838b6 (commit)

- Log -----------------------------------------------------------------
commit ec75f9d1a36b6f46e7ec6597d295f113c4aa12b3
Author: Nicholas Marriott <nicholas.marri...@gmail.com>
Commit: Nicholas Marriott <nicholas.marri...@gmail.com>

    Allow lastgc to be NULL in grid_string_cells so find-window doesn't crash,
    problem reported by eugene everson.
---
 grid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/grid.c b/grid.c
index b30127f..551a7dc 100644
--- a/grid.c
+++ b/grid.c
@@ -595,7 +595,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, 
u_int nx,
 
        GRID_DEBUG(gd, "px=%u, py=%u, nx=%u", px, py, nx);
 
-       if (*lastgc == NULL) {
+       if (lastgc != NULL && *lastgc == NULL) {
                memcpy(&lastgc1, &grid_default_cell, sizeof lastgc1);
                *lastgc = &lastgc1;
        }


-----------------------------------------------------------------------

Summary of changes:
 grid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to