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
No related branches found
No related tags found
No related merge requests found
...@@ -851,11 +851,11 @@ static void parse() { ...@@ -851,11 +851,11 @@ static void parse() {
log_info("Got line %d\n", lineno); log_info("Got line %d\n", lineno);
len = strlen(line_buf); len = strlen(line_buf);
if (line_buf[len - 1] == '\n') if (line_buf[len - 1] == '\n')
line_buf[len - 1] = 0; line_buf[len - 1] = '\0';
p = line_buf; p = line_buf;
while (isspace(*p)) while (isspace(*p))
p++; p++;
if (*p == '#' || *p == 0) if (*p == '#' || *p == '\0')
continue; continue;
token = strtok_r(p, " \t", &saveptr); token = strtok_r(p, " \t", &saveptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment