mirror of
https://github.com/tmux/tmux.git
synced 2026-04-16 03:56:28 +00:00
Fix NULL dereference in sort.c, from Dane Jensen.
This commit is contained in:
1
sort.c
1
sort.c
@@ -505,6 +505,7 @@ sort_get_panes_session(struct session *s, u_int *n,
|
|||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
RB_FOREACH(wl, winlinks, &s->windows) {
|
RB_FOREACH(wl, winlinks, &s->windows) {
|
||||||
|
w = wl->window;
|
||||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||||
if (lsz <= i) {
|
if (lsz <= i) {
|
||||||
lsz += 100;
|
lsz += 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user