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
Branches
Tags
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 register or to comment