1
0
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:
Lennart Poettering 2021-09-15 09:23:56 +02:00
parent d1469b7095
commit 20240b071b

View File

@ -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;