diff options
| author | zhengchao <[email protected]> | 2018-12-24 22:47:26 +0600 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-12-24 22:47:26 +0600 |
| commit | 6cbe6e7b9cfeea44d0a8efdbbd78771df3fab6cb (patch) | |
| tree | 107968bb00ca61a364f4781184abf843d0841274 /common/src/tfe_future.cpp | |
| parent | 67c488bcc10567972b749d479d11c57846b2b9c6 (diff) | |
输出非结构化日志。
Diffstat (limited to 'common/src/tfe_future.cpp')
| -rw-r--r-- | common/src/tfe_future.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/tfe_future.cpp b/common/src/tfe_future.cpp index 8f7cc69..042ff06 100644 --- a/common/src/tfe_future.cpp +++ b/common/src/tfe_future.cpp @@ -144,6 +144,10 @@ static void __promise_destroy(struct promise *p) struct promise * future_to_promise(struct future * f) { + if(f==NULL) + { + return NULL; + } struct promise *p=__future_to_promise(f); p->ref_cnt++; assert(p->ref_cnt==2); |
