From f19ab6dc5ed2f2467e7b75c53fb315a1002ee14a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 28 Sep 2014 01:12:54 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2