Fix a warning about the control logic in xchomp()
This commit is contained in:
parent
cdf29ff45a
commit
a5089af726
|
@ -284,8 +284,8 @@ xchomp(char *line)
|
||||||
len = strlen(line);
|
len = strlen(line);
|
||||||
if (line[len - 1] == '\n' && len > 0) {
|
if (line[len - 1] == '\n' && len > 0) {
|
||||||
line[len - 1] = '\0';
|
line[len - 1] = '\0';
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
GDevPtr
|
GDevPtr
|
||||||
|
|
Loading…
Reference in New Issue