protect meta_verbose from a NULL pointer.

2001-11-02  Laszlo Peter  <laca@ireland.sun.com>

	* src/window.c (update_sm_hints): protect meta_verbose from
	a NULL pointer.
This commit is contained in:
Laszlo Peter 2001-11-02 14:55:00 +00:00 committed by László PÉTER
parent 8c5e683296
commit 6bae734d41
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-11-02 Laszlo Peter <laca@ireland.sun.com>
* src/window.c (update_sm_hints): protect meta_verbose from
a NULL pointer.
2001-10-29 Havoc Pennington <hp@pobox.com>
* configure.in: bump version

View File

@ -3575,7 +3575,8 @@ update_sm_hints (MetaWindow *window)
&window->sm_client_id);
meta_verbose ("Window %s client leader: 0x%lx SM_CLIENT_ID: '%s'\n",
window->desc, window->xclient_leader, window->sm_client_id);
window->desc, window->xclient_leader,
window->sm_client_id ? window->sm_client_id : "(null)");
}
else
meta_verbose ("Didn't find a client leader for %s\n", window->desc);