fixed a core dump
2c0d1cc8
2 file(s) · +4 −3
| 52 | 52 | if (!issel) |
|
| 53 | 53 | return; |
|
| 54 | 54 | Client *old = sel; |
|
| 55 | - | XEvent ev; |
|
| 56 | 55 | ||
| 57 | 56 | sel = c; |
|
| 58 | 57 | if(old && old != c) |
| 211 | 211 | else |
|
| 212 | 212 | m++; |
|
| 213 | 213 | } |
|
| 214 | - | ||
| 215 | - | n = 2 * (f + m); |
|
| 214 | + | if(!(n = 2 * (f + m))) { |
|
| 215 | + | drawstatus(); |
|
| 216 | + | return; |
|
| 217 | + | } |
|
| 216 | 218 | if(nwins < n) { |
|
| 217 | 219 | nwins = n; |
|
| 218 | 220 | wins = erealloc(wins, nwins * sizeof(Window)); |