mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
sysctl-util: per coding style, compare chars explicit against 0.
This commit is contained in:
parent
d1469b7095
commit
20240b071b
@ -38,7 +38,7 @@ char *sysctl_normalize(char *s) {
|
||||
path_simplify(s);
|
||||
|
||||
/* Kill the leading slash, but keep the first character of the string in the same place. */
|
||||
if (*s == '/' && *(s+1))
|
||||
if (s[0] == '/' && s[1] != 0)
|
||||
memmove(s, s+1, strlen(s));
|
||||
|
||||
return s;
|
||||
|
Loading…
Reference in New Issue
Block a user