From 1403652c72e886fc3392faedb4db11660b2d0d68 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 6 May 2016 18:47:15 -0700 Subject: [PATCH] Remove unused variable in devredir_cvt_from_unicode_len() --- sesman/chansrv/devredir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c index cc8ca22e..c29c7e43 100644 --- a/sesman/chansrv/devredir.c +++ b/sesman/chansrv/devredir.c @@ -1474,7 +1474,6 @@ devredir_cvt_from_unicode_len(char *path, char *unicode, int len) char *dest; char *dest_saved; char *src; - int rv; int i; int bytes_to_alloc; int max_bytes; @@ -1499,7 +1498,7 @@ devredir_cvt_from_unicode_len(char *path, char *unicode, int len) max_bytes = wcstombs(NULL, (wchar_t *) dest_saved, 0); if (max_bytes > 0) { - rv = wcstombs(path, (wchar_t *) dest_saved, max_bytes); + wcstombs(path, (wchar_t *) dest_saved, max_bytes); path[max_bytes] = 0; }