Skip to content

Commit

Permalink
add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
niha committed Apr 14, 2010
1 parent bb3ade4 commit 727ad72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2987,7 +2987,7 @@ int rec;
break;
case 'g':
*p = 0;
strcpy(p, (win->w_type == W_TYPE_GROUP) ? "[g]" : "");
strcpy(p, (win && win->w_type == W_TYPE_GROUP) ? "[g]" : "");
qmflag = 1;
p += strlen(p) - 1;
break;
Expand Down

0 comments on commit 727ad72

Please sign in to comment.