summaryrefslogtreecommitdiff
path: root/source4/gtk/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-08 08:31:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:11 -0500
commit91abd131e63087b3e7239f7b58542a2f08e4bd66 (patch)
treed244c2f63c131738e7474660248e09ba95a73d8f /source4/gtk/common
parent35cb1931ed1ceb468694bb825ac4e8656f57fefb (diff)
downloadsamba-91abd131e63087b3e7239f7b58542a2f08e4bd66.tar.gz
samba-91abd131e63087b3e7239f7b58542a2f08e4bd66.tar.bz2
samba-91abd131e63087b3e7239f7b58542a2f08e4bd66.zip
r12123: handle fde == NULL at the correct level
metze (This used to be commit 1dd5bb60a5047b94034eb084473bb8f4a9926e7c)
Diffstat (limited to 'source4/gtk/common')
-rw-r--r--source4/gtk/common/gtk_events.c4
1 files changed, 0 insertions, 4 deletions
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)