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> 2006-01-14 Elijah Newren <newren gmail com>
* src/compositor.[ch]: fix compilation when * src/compositor.[ch]: fix compilation when

View File

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