summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-19 09:51:11 +0200
committerVolker Lendecke <vl@samba.org>2012-04-19 17:37:37 +0200
commitee8d55622fa6435ac17befc269daa28f5cfa21dc (patch)
tree5bc31cb38ec97cb9f0bdf3ae94405a759e76407a /source3
parente21029a270a6e3b8bcc5ff33b74977cb0cd6cd17 (diff)
downloadsamba-ee8d55622fa6435ac17befc269daa28f5cfa21dc.tar.gz
samba-ee8d55622fa6435ac17befc269daa28f5cfa21dc.tar.bz2
samba-ee8d55622fa6435ac17befc269daa28f5cfa21dc.zip
s3: Fix Coverity ID 2749: REVERSE_INULL
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/notify_internal.c4
1 files changed, 3 insertions, 1 deletions
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);