based on submission from Seunghun, Lee - dont access NULL desk

this effectively accepts D574 but is re-done with different formatting.
This commit is contained in:
Carsten Haitzler 2014-03-05 15:27:15 +09:00
parent 8568a76313
commit 565faa1155
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ _initialize_tinfo(const E_Desk *desk)
static void
check_tinfo(const E_Desk *desk)
{
if (!desk) return;
if (!_G.tinfo || _G.tinfo->desk != desk)
{
_G.tinfo = eina_hash_find(_G.info_hash, &desk);