From 1adf939c5942ad191afe53e1c0a9169e5df02db1 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 31 Jan 2014 15:52:56 +0000 Subject: Fixes STR #3040 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_utf8.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx index c76a4b01e..564246e16 100644 --- a/src/fl_utf8.cxx +++ b/src/fl_utf8.cxx @@ -609,7 +609,7 @@ int fl_execvp(const char *file, char *const *argv) return _execvp(fl_utf2mbcs(file), argv); #else size_t l = strlen(file); - int i, n, ret; + int i, n; xchar **ar; // wbuf = (xchar*)realloc(wbuf, sizeof(xchar) * (l+1)); // wbuf[fl_utf2unicode((const unsigned char*)file, l, wbuf)] = 0; @@ -634,14 +634,14 @@ int fl_execvp(const char *file, char *const *argv) i++; } ar[n] = NULL; - ret = _wexecvp(wbuf, ar); + _wexecvp(wbuf, ar); // STR #3040 i = 0; while (i <= n) { free(ar[i]); i++; } free(ar); - return ret; + return -1; // STR #3040 #endif #else return execvp(file, argv); -- cgit v1.2.3