diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index dfaa572..b7cdc88 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -141,6 +141,10 @@ static struct ptyc_driver_ctx_impl * ptyc_driver_ctx_alloc( size_t size; struct argv_entry * entry; const char ** units; + nt_runtime_data * rtdata; + + if (ntapi->tt_get_runtime_data(&rtdata,0)) + return 0; size = sizeof(struct ptyc_driver_ctx_alloc); size += (nunits+1)*sizeof(const char *); @@ -157,6 +161,7 @@ static struct ptyc_driver_ctx_impl * ptyc_driver_ctx_alloc( ictx->meta = meta; ictx->ctx.ctx.units = ictx->units; + ictx->ctx.rtdata = rtdata; return &ictx->ctx; } |