util/options.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 9bddfde25dc8c302c765a1e9a8a2c38c4a836e2e Author: Behdad Esfahbod <[email protected]> Date: Tue Nov 6 11:03:34 2018 -0500 [util] Fix up previous commit diff --git a/util/options.cc b/util/options.cc index 3b22ca72..3f8fa3d0 100644 --- a/util/options.cc +++ b/util/options.cc @@ -729,9 +729,13 @@ const char * text_options_t::get_line (unsigned int *len) { if (text) { - if (!line) line = text; - if (line_len == (unsigned int) -1) + if (!line) + { + line = text; line_len = text_len; + } + if (line_len == (unsigned int) -1) + line_len = strlen (line); if (!line_len) { *len = 0; _______________________________________________ HarfBuzz mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/harfbuzz
