1
0
Fork 0

Don't dereference a NULL string. Fixes #327013.

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

	* src/window.c (__window_is_terminal): Don't dereference a NULL
	string.  Fixes #327013.
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

View file

@ -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

View file

@ -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 */