Commit daa2cd1
committed
Fix crash in get_member_id() if client group is not initialized
Since in this case rd_kafka_memberid() return NULL, and std::string
cannot be constructed from NULL [1].
[1]: https://github.com/llvm/llvm-project/blob/fe51d8ae5772626ef8237c33e0911695cf4f07db/libcxx/include/string#L1051-L10551 parent f56b2fe commit daa2cd1
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
| |||
0 commit comments