summaryrefslogtreecommitdiff
path: root/eel/eel-vfs-extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'eel/eel-vfs-extensions.c')
-rw-r--r--eel/eel-vfs-extensions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-vfs-extensions.c b/eel/eel-vfs-extensions.c
index 9c786965..6351ed54 100644
--- a/eel/eel-vfs-extensions.c
+++ b/eel/eel-vfs-extensions.c
@@ -62,7 +62,7 @@ eel_make_valid_utf8 (const char *name)
{
GString *string;
const char *remainder, *invalid;
- int remaining_bytes, valid_bytes;
+ int remaining_bytes;
string = NULL;
remainder = name;
@@ -70,6 +70,8 @@ eel_make_valid_utf8 (const char *name)
while (remaining_bytes != 0)
{
+ int valid_bytes;
+
if (g_utf8_validate (remainder, remaining_bytes, &invalid))
{
break;