summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9aa2e32)
If the line is made solely of whitespaces, they get removed and we end up with len
set to -1. Therefore we need an additional check to avoid dereferencing line[-1].
}
/* Detect multi-line */
}
/* Detect multi-line */
- if (line[len] == '\\') {
+ if (len >= 0 && line[len] == '\\') {
/* Multi-line value */
last = len;
continue;
/* Multi-line value */
last = len;
continue;