cache_get_text never returns NULL, so check if entry->data is NULL

instead.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1029 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2005-11-23 12:49:37 +00:00
parent f2558e541e
commit 798983d938

2
xwin.c
View File

@ -2467,7 +2467,7 @@ ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode, int x, int y,
break; break;
} }
entry = cache_get_text(text[i + 1]); entry = cache_get_text(text[i + 1]);
if (entry != NULL) if (entry->data != NULL)
{ {
if ((((uint8 *) (entry->data))[1] == if ((((uint8 *) (entry->data))[1] ==
0) && (!(flags & TEXT2_IMPLICIT_X))) 0) && (!(flags & TEXT2_IMPLICIT_X)))