summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2014-01-31 15:52:56 +0000
committerGreg Ercolano <erco@seriss.com>2014-01-31 15:52:56 +0000
commit1adf939c5942ad191afe53e1c0a9169e5df02db1 (patch)
treedd541d046aea4879f833984fe7ccac1d3a9412fa /src
parente19ea8eb33a70d06e6493c4abb59f3f336883f39 (diff)
Fixes STR #3040
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_utf8.cxx6
1 files changed, 3 insertions, 3 deletions
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);