summaryrefslogtreecommitdiff
path: root/src/shared/utf8.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-08 23:54:21 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-08 23:54:21 +0200
commit64825d3c589cd8742887f30acde8c57eceac2001 (patch)
tree880c0f250aff9efb4aa2c2a892ad29479a987462 /src/shared/utf8.c
parentc269cec334f940d82146f70d69125b1caef08baa (diff)
fix a couple of issues found with llvm-analyze
Diffstat (limited to 'src/shared/utf8.c')
-rw-r--r--src/shared/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/utf8.c b/src/shared/utf8.c
index a6f5b3f9e5..ea7483f50f 100644
--- a/src/shared/utf8.c
+++ b/src/shared/utf8.c
@@ -275,7 +275,7 @@ char *ascii_filter(const char *str) {
if (!r)
return NULL;
- for (s = r, d = r; *s; s++)
+ for (s = str, d = r; *s; s++)
if ((unsigned char) *s < 128)
*(d++) = *s;