Skip to content

Commit a802e10

Browse files
committed
Proper empty string
1 parent 00564ae commit a802e10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tracer/ffe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void ddtrace_ffe_record_exposure(
7676
dd_ffe_exposure *exposure = &buffer[DDTRACE_G(ffe_exposure_buffer_len)++];
7777
exposure->timestamp_ms = ddtrace_nanoseconds_realtime() / 1000000;
7878
exposure->flag_key = zend_string_copy(flag_key);
79-
exposure->subject_id = targeting_key ? zend_string_copy(targeting_key) : zend_string_init("", 0, 0);
79+
exposure->subject_id = targeting_key ? zend_string_copy(targeting_key) : ZSTR_EMPTY_ALLOC();
8080
exposure->subject_attributes_json = zend_string_copy(subject_attributes_json);
8181
exposure->allocation_key = zend_string_copy(allocation_key);
8282
exposure->variant = zend_string_copy(variant);

0 commit comments

Comments
 (0)