aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-kbdc.c')
-rw-r--r--src/mds-kbdc.c4
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;
}