From 20240b071b669d51db2b48adb4cfa01a2876ec9f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Sep 2021 09:23:56 +0200 Subject: sysctl-util: per coding style, compare chars explicit against 0. --- src/basic/sysctl-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic') diff --git a/src/basic/sysctl-util.c b/src/basic/sysctl-util.c index 4e168dd48a..bb01d09696 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; -- cgit v1.2.1