diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2019-03-07 13:24:45 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2019-03-07 13:24:45 +0000 |
commit | ee68fee17adee06c92046570937fc4cfe6bc792e (patch) | |
tree | 179cf2bc8d9644d11de8c64d92183fca887d5e2b /app/cwm | |
parent | ca444567602cd7a1064d184074ca3cf5bbc4afcd (diff) |
check cc->gc directly
Diffstat (limited to 'app/cwm')
-rw-r--r-- | app/cwm/client.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index ef4a76624..0c4bd3d07 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.253 2019/03/07 13:14:41 okan Exp $ + * $OpenBSD: client.c,v 1.254 2019/03/07 13:24:44 okan Exp $ */ #include <sys/types.h> @@ -960,12 +960,11 @@ void client_htile(struct client_ctx *cc) { struct client_ctx *ci; - struct group_ctx *gc = cc->gc; struct screen_ctx *sc = cc->sc; struct geom area; int i, n, mh, x, w, h; - if (!gc) + if (!cc->gc) return; i = n = 0; @@ -1032,12 +1031,11 @@ void client_vtile(struct client_ctx *cc) { struct client_ctx *ci; - struct group_ctx *gc = cc->gc; struct screen_ctx *sc = cc->sc; struct geom area; int i, n, mw, y, w, h; - if (!gc) + if (!cc->gc) return; i = n = 0; |