diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-28 01:12:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-28 01:12:54 +0200 |
commit | f19ab6dc5ed2f2467e7b75c53fb315a1002ee14a (patch) | |
tree | 19eb31051e1799b6710a332c086161fbe9b18489 /src | |
parent | m (diff) | |
download | mds-f19ab6dc5ed2f2467e7b75c53fb315a1002ee14a.tar.gz mds-f19ab6dc5ed2f2467e7b75c53fb315a1002ee14a.tar.bz2 mds-f19ab6dc5ed2f2467e7b75c53fb315a1002ee14a.tar.xz |
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-kbdc.c b/src/mds-kbdc.c index 7785102..27c9cca 100644 --- a/src/mds-kbdc.c +++ b/src/mds-kbdc.c @@ -174,7 +174,7 @@ static char** line_split(char* content, size_t length) fail_if (xmalloc(lines, count + 1, char)); lines[count] = NULL; - for (i = 0; i < length; i++) + for (i = j = 0; i < length; i++) { if (new_line) new_line = 0, lines[j++] = content + i; @@ -248,6 +248,6 @@ int main(int argc_, char** argv_) pfail: xperror(*argv); rc = 1; - goto done: + goto done; } |