1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

basic: fix hosed return value in skip_session()

../src/basic/cgroup-util.c: In function ‘skip_session’:
../src/basic/cgroup-util.c:1241:32: error: incompatible types when returning type ‘_Bool’ but ‘const char *’ was expected
 1241 |                         return false;

(cherry picked from commit db8e720984)
This commit is contained in:
Cristian Rodríguez 2023-01-01 22:40:26 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent addeb46993
commit ad647734c7

View File

@ -1238,7 +1238,7 @@ static const char *skip_session(const char *p) {
* here. */
if (!session_id_valid(buf))
return false;
return NULL;
p += n;
p += strspn(p, "/");