From: Lennart Poettering Date: Wed, 15 Sep 2021 07:23:56 +0000 (+0200) Subject: sysctl-util: per coding style, compare chars explicit against 0. X-Git-Tag: v250-rc1~666^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20240b071b669d51db2b48adb4cfa01a2876ec9f;p=thirdparty%2Fsystemd.git sysctl-util: per coding style, compare chars explicit against 0. --- diff --git a/src/basic/sysctl-util.c b/src/basic/sysctl-util.c index 4e168dd48a1..bb01d09696d 100644 --- a/src/basic/sysctl-util.c +++ b/src/basic/sysctl-util.c @@ -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;