Commit 54a6f95
committed
CCBC-1596: Fix dangling pointer in cbc-bucket-list
tools/cbc.cc:2048:28: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
const char *name = json[i]["name"].asString().c_str();
^~~~~~~~~~~~~~~~~~~~~~~~~~
tools/cbc.cc:2049:34: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
const char *bucketType = json[i]["bucketType"].asString().c_str();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: Ife437d498e83778666f6911dafc8020a92f433a8
Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/190104
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>1 parent 55a04cb commit 54a6f95
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
| |||
0 commit comments