add NULL-pointer checks

git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@231 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
Ludwig Nussel 2002-10-13 14:17:28 +00:00 committed by l-n
parent f5bffb86f8
commit ef998b8106

View File

@ -339,6 +339,9 @@ void player_clist_redraw (void) {
void server_clist_sync_selection (void) {
GList *selection;
if(!server_clist)
return;
debug (7, "server_clist_sync_selection() --");
if (!sync_selection_blocked) {
selection = server_clist->selection;
@ -450,13 +453,18 @@ GSList *server_clist_all_servers (void) {
void server_clist_selection_visible (void) {
GList *rows = server_clist->selection;
GList *rows;
GList *row;
GtkVisibility vis;
int min;
debug (7, "server_clist_selection_visible() -- ");
if(!server_clist)
return;
rows = server_clist->selection;
if (!rows)
return;