diff options
author | Simon McVittie <smcv@collabora.com> | 2017-07-03 17:31:37 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-11-24 12:16:56 +0000 |
commit | 608a453b73a9f5b165d20f08cfb0f17a3147f514 (patch) | |
tree | 23e7f1aea11711f7121dde6e5da1066099c1e785 /dbus/dbus-string.h | |
parent | 85e89a4e9bb6482b42feb34185a17b889d41fb88 (diff) | |
download | dbus-608a453b73a9f5b165d20f08cfb0f17a3147f514.tar.gz |
DBusString: Reverse the sense of ->invalid
It's easier to implement a stack-allocated string that is valid to
free (but for no other purpose) if we consider all-bits-zero to be
invalid.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89104
Diffstat (limited to 'dbus/dbus-string.h')
-rw-r--r-- | dbus/dbus-string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-string.h b/dbus/dbus-string.h index 2f78a04c..e7060b9f 100644 --- a/dbus/dbus-string.h +++ b/dbus/dbus-string.h @@ -405,7 +405,7 @@ _dbus_string_get_const_udata_len (const DBusString *str, int start, int len) sizeof(_dbus_static_string_##name) - 1, \ sizeof(_dbus_static_string_##name) + \ _DBUS_STRING_ALLOCATION_PADDING, \ - TRUE, TRUE, FALSE, 0 } + TRUE, TRUE, TRUE, 0 } DBUS_END_DECLS |