From: Lennart Poettering Date: Tue, 6 Apr 2010 15:14:04 +0000 (+0200) Subject: util: fix ascii_strlower() return value X-Git-Tag: 0.git+20100605+dfd8ee-1~256 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d51650ce3c3741bad8e5dca5d4e03c30f266cd;p=systemd util: fix ascii_strlower() return value --- diff --git a/util.c b/util.c index 7306ddde..9da7d985 100644 --- a/util.c +++ b/util.c @@ -1058,16 +1058,16 @@ bool path_startswith(const char *path, const char *prefix) { } } -char *ascii_strlower(char *path) { +char *ascii_strlower(char *t) { char *p; - assert(path); + assert(t); - for (p = path; *p; p++) + for (p = t; *p; p++) if (*p >= 'A' && *p <= 'Z') *p = *p - 'A' + 'a'; - return p; + return t; } bool ignore_file(const char *filename) {