We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaff30f commit 59e8ec2Copy full SHA for 59e8ec2
agent/lib_mongodb.c
@@ -179,9 +179,11 @@ NR_PHP_WRAPPER_END
179
180
NR_PHP_WRAPPER(nr_mongodb_operation_before) {
181
(void)wraprec;
182
- nr_segment_t* segment;
+ nr_segment_t* segment = NULL;
183
segment = nr_segment_start(NRPRG(txn), NULL, NULL);
184
- segment->wraprec = auto_segment->wraprec;
+ if (NULL != segment) {
185
+ segment->wraprec = auto_segment->wraprec;
186
+ }
187
}
188
NR_PHP_WRAPPER_END
189
0 commit comments