sysctl-util: per coding style, compare chars explicit against 0.

This commit is contained in:
Lennart Poettering
2021-09-15 16:32:40 +02:00
parent d1469b7095
commit 20240b071b
+1 -1
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;