summaryrefslogtreecommitdiffstats
path: root/source3/smbd/notify_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/notify_internal.c')
-rw-r--r--source3/smbd/notify_internal.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 9d54891152..9c0b1901f8 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -831,9 +831,13 @@ static void notify_handler(struct messaging_context *msg_ctx,
}
m = (struct notify_msg *)data->data;
- e.action = m->action;
- e.path = m->path;
- e.private_data = m->private_data;
+
+ e = (struct notify_event) {
+ .action = m->action,
+ .path = m->path,
+ .private_data = m->private_data,
+ .dir = discard_const_p(char, "")
+ };
for (listel=notify->list;listel;listel=listel->next) {
if (listel->private_data == m->private_data) {