1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Explicitly require event context to be specified.

(This used to be commit a95a71fe45)
This commit is contained in:
Jelmer Vernooij 2008-04-17 01:19:53 +02:00
parent 06d06c6c94
commit c15ffa27cb
2 changed files with 5 additions and 1 deletions

View File

@ -93,6 +93,10 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
return NULL;
}
if (ev == NULL) {
return NULL;
}
notify = talloc(mem_ctx, struct notify_context);
if (notify == NULL) {
return NULL;

View File

@ -52,7 +52,7 @@ _PUBLIC_ struct sys_notify_context *sys_notify_context_create(struct share_confi
}
if (ev == NULL) {
ev = event_context_find(mem_ctx);
return NULL;
}
ctx = talloc_zero(mem_ctx, struct sys_notify_context);