From 91abd131e63087b3e7239f7b58542a2f08e4bd66 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 8 Dec 2005 08:31:59 +0000 Subject: r12123: handle fde == NULL at the correct level metze (This used to be commit 1dd5bb60a5047b94034eb084473bb8f4a9926e7c) --- source4/gtk/common/gtk_events.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source4/gtk') diff --git a/source4/gtk/common/gtk_events.c b/source4/gtk/common/gtk_events.c index 3301ca2b75..f844ab01c9 100644 --- a/source4/gtk/common/gtk_events.c +++ b/source4/gtk/common/gtk_events.c @@ -171,8 +171,6 @@ static struct fd_event *gtk_event_add_fd(struct event_context *ev, TALLOC_CTX *m */ static uint16_t gtk_event_get_fd_flags(struct fd_event *fde) { - if (!fde) return 0; - return fde->flags; } @@ -185,8 +183,6 @@ static void gtk_event_set_fd_flags(struct fd_event *fde, uint16_t flags) struct gtk_fd_event); GIOCondition condition = 0; - if (!fde) return; - if (fde->flags == flags) return; if (flags & EVENT_FD_READ) -- cgit