projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e1afbd
)
Revert "[runtime] Fix a warning."
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 24 Aug 2017 02:46:10 +0000
(22:46 -0400)
committer
Zoltan Varga
<vargaz@gmail.com>
Thu, 24 Aug 2017 02:47:43 +0000
(22:47 -0400)
This reverts commit
f99617537ba31a046ede2753733d20c20a30e714
.
Revert this as the original code was right, there is a problem with the defines.
mono/eglib/gstr.c
patch
|
blob
|
history
diff --git
a/mono/eglib/gstr.c
b/mono/eglib/gstr.c
index 949ef88d39ffc5baff221917ba6a3c32e14801ce..cd2fda3c2a115f0fe3a04526d31719d90e0e8e84 100644
(file)
--- a/
mono/eglib/gstr.c
+++ b/
mono/eglib/gstr.c
@@
-263,8
+263,7
@@
g_strerror (gint errnum)
if (buff != tmp_buff)
g_free (buff);
#else /* USE_STRERROR_R_XSI */
- int r;
- r = strerror_r (errnum, buff, buff_len);
+ buff = strerror_r (errnum, buff, buff_len);
if (!error_messages [errnum])
error_messages [errnum] = g_strdup (buff);
#endif /* USE_STRERROR_R_XSI */