From ee8d55622fa6435ac17befc269daa28f5cfa21dc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 19 Apr 2012 09:51:11 +0200 Subject: s3: Fix Coverity ID 2749: REVERSE_INULL --- source3/smbd/notify_internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/smbd/notify_internal.c') diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 4d78743687..27fe21214b 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -388,7 +388,7 @@ static NTSTATUS notify_add_idx(struct db_record *rec, uint32_t vnn) NTSTATUS notify_remove(struct notify_context *notify, void *private_data) { - struct server_id pid = messaging_server_id(notify->msg); + struct server_id pid; struct notify_list *listel; struct db_record *notify_rec; NTSTATUS status; @@ -399,6 +399,8 @@ NTSTATUS notify_remove(struct notify_context *notify, void *private_data) DEBUG(10, ("notify_remove: private_data=%p\n", private_data)); + pid = messaging_server_id(notify->msg); + for (listel=notify->list;listel;listel=listel->next) { if (listel->private_data == private_data) { DLIST_REMOVE(notify->list, listel); -- cgit