Skip to content
Snippets Groups Projects
Commit f6647eb9 authored by Alice Chu's avatar Alice Chu
Browse files

Change 0 to NULL Byte

Change-Id: I16b47f8dbf64e8dffb550b5a89321f920604ef7a
parent 47cd396b
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