1
0
mirror of https://github.com/brl/mutter.git synced 2025-06-07 22:13:58 +00:00

Don't dereference a NULL string. Fixes .

2006-01-14  Elijah Newren  <newren gmail com>

	* src/window.c (__window_is_terminal): Don't dereference a NULL
	string.  Fixes .
This commit is contained in:
Elijah Newren 2006-01-15 04:45:34 +00:00 committed by Elijah Newren
parent def12b85b8
commit 50bcc976bc
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
2006-01-14 Elijah Newren <newren gmail com>
* src/window.c (__window_is_terminal): Don't dereference a NULL
string. Fixes #327013.
2006-01-14 Elijah Newren <newren gmail com>
* src/compositor.[ch]: fix compilation when

@ -1717,7 +1717,7 @@ intervening_user_event_occurred (MetaWindow *window)
gboolean
__window_is_terminal (MetaWindow *window)
{
if (window == NULL)
if (window == NULL || window->res_name == NULL)
return FALSE;
/* gnome-terminal -- if you couldn't guess */