util: fix ascii_strlower() return value

This commit is contained in:
Lennart Poettering 2010-04-06 17:14:04 +02:00
parent f278026d21
commit 67d51650ce

8
util.c
View File

@ -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; char *p;
assert(path); assert(t);
for (p = path; *p; p++) for (p = t; *p; p++)
if (*p >= 'A' && *p <= 'Z') if (*p >= 'A' && *p <= 'Z')
*p = *p - 'A' + 'a'; *p = *p - 'A' + 'a';
return p; return t;
} }
bool ignore_file(const char *filename) { bool ignore_file(const char *filename) {