summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-12-11 15:06:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-11 16:04:02 +0900
commit771bb6e6a79113fe86b9bd641d1418a78aee81ae (patch)
treef1dccef88a7d64f06191a779f9e5080497bfcb57 /src/lib/eio
parent196b6f1ba48bf06a11c0017e43550583a05d00f5 (diff)
Evil: use static buffer to store error messages
Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5394
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_monitor_win32.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/lib/eio/eio_monitor_win32.c b/src/lib/eio/eio_monitor_win32.c
index 05374f1c76..bfbb0ec546 100644
--- a/src/lib/eio/eio_monitor_win32.c
+++ b/src/lib/eio/eio_monitor_win32.c
@@ -191,14 +191,7 @@ _eio_monitor_win32_cb(void *data, Ecore_Win32_Handler *wh EINA_UNUSED)
191 &w->overlapped, 191 &w->overlapped,
192 NULL)) 192 NULL))
193 { 193 {
194 char *msg; 194 ERR("%s", evil_last_error_get());
195
196 msg = evil_last_error_get();
197 if (msg)
198 {
199 ERR("%s", msg);
200 free(msg);
201 }
202 return ECORE_CALLBACK_CANCEL; 195 return ECORE_CALLBACK_CANCEL;
203 } 196 }
204 197
@@ -271,14 +264,7 @@ _eio_monitor_win32_watcher_new(Eio_Monitor *monitor,
271 &w->overlapped, 264 &w->overlapped,
272 NULL)) 265 NULL))
273 { 266 {
274 char *msg; 267 ERR("%s", evil_last_error_get());
275
276 msg = evil_last_error_get();
277 if (msg)
278 {
279 ERR("%s", msg);
280 free(msg);
281 }
282 goto close_event; 268 goto close_event;
283 } 269 }
284 270