From: Marco Peereboom Date: Fri, 30 Jan 2009 03:51:01 +0000 (+0000) Subject: Fix a silly crash X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=63d5e9bd53052d6ac7beb8bbba0a2ea2b667b96f;p=spectrwm.git Fix a silly crash --- diff --git a/scrotwm.c b/scrotwm.c index fbb41b3..49ffc85 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1515,6 +1515,9 @@ send_to_ws(struct swm_region *r, union arg *args) Atom ws_idx_atom = 0; unsigned char ws_idx_str[SWM_PROPLEN]; + if (win == NULL) + return; + DNPRINTF(SWM_D_MOVE, "send_to_ws: win: %lu\n", win->id); ws = win->ws;