projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ec2e4f
)
[util] Fix up previous commit
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 6 Nov 2018 16:03:34 +0000
(11:03 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 6 Nov 2018 16:03:34 +0000
(11:03 -0500)
util/options.cc
patch
|
blob
|
history
diff --git
a/util/options.cc
b/util/options.cc
index
3b22ca7
..
3f8fa3d
100644
(file)
--- 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;