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:
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 */
|
||||
|
|
Loading…
Reference in a new issue