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 690811c commit e2ccc37Copy full SHA for e2ccc37
glib/src/log.rs
@@ -359,6 +359,8 @@ impl<'a> LogField<'a> {
359
let (value, length) = if value.len() > 0 {
360
(value, value.len().try_into().unwrap())
361
} else {
362
+ // Use an empty C string to represent empty data, since length: 0 is reserved for user
363
+ // data fields.
364
(&[0u8] as &[u8], -1isize)
365
};
366
Self(
0 commit comments