Skip to content
Snippets Groups Projects
Commit 9eeb758f authored by Alice Chu's avatar Alice Chu Committed by Android Git Automerger
Browse files

am 83dde220: am f6647eb9: Change 0 to NULL Byte

* commit '83dde220':
  Change 0 to NULL Byte
parents 2d086adc 83dde220
Branches
No related tags found
No related merge requests found
......@@ -851,11 +851,11 @@ static void parse() {
log_info("Got line %d\n", lineno);
len = strlen(line_buf);
if (line_buf[len - 1] == '\n')
line_buf[len - 1] = 0;
line_buf[len - 1] = '\0';
p = line_buf;
while (isspace(*p))
p++;
if (*p == '#' || *p == 0)
if (*p == '#' || *p == '\0')
continue;
token = strtok_r(p, " \t", &saveptr);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment