fix uninitialized old_scope
This commit is contained in:
parent
647ae694cc
commit
8ce9433736
@ -51,6 +51,11 @@ struct ReservePoller
|
|||||||
*/
|
*/
|
||||||
struct MHD_Connection *connection;
|
struct MHD_Connection *connection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Our request context.
|
||||||
|
*/
|
||||||
|
struct TEH_RequestContext *rc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subscription for the database event we are
|
* Subscription for the database event we are
|
||||||
* waiting for.
|
* waiting for.
|
||||||
@ -154,6 +159,8 @@ db_event_cb (void *cls,
|
|||||||
(void) extra_size;
|
(void) extra_size;
|
||||||
if (! rp->suspended)
|
if (! rp->suspended)
|
||||||
return; /* might get multiple wake-up events */
|
return; /* might get multiple wake-up events */
|
||||||
|
GNUNET_async_scope_enter (&rp->rc->async_scope_id,
|
||||||
|
&old_scope);
|
||||||
TEH_check_invariants ();
|
TEH_check_invariants ();
|
||||||
rp->suspended = false;
|
rp->suspended = false;
|
||||||
MHD_resume_connection (rp->connection);
|
MHD_resume_connection (rp->connection);
|
||||||
@ -176,6 +183,7 @@ TEH_handler_reserves_get (struct TEH_RequestContext *rc,
|
|||||||
|
|
||||||
rp = GNUNET_new (struct ReservePoller);
|
rp = GNUNET_new (struct ReservePoller);
|
||||||
rp->connection = rc->connection;
|
rp->connection = rc->connection;
|
||||||
|
rp->rc = rc;
|
||||||
rc->rh_ctx = rp;
|
rc->rh_ctx = rp;
|
||||||
rc->rh_cleaner = &rp_cleanup;
|
rc->rh_cleaner = &rp_cleanup;
|
||||||
GNUNET_CONTAINER_DLL_insert (rp_head,
|
GNUNET_CONTAINER_DLL_insert (rp_head,
|
||||||
|
Loading…
Reference in New Issue
Block a user