projects
/
guacd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
660261c
)
Set guac_error* before calling client handlers
author
Michael Jumper <zhangmaike@users.sourceforge.net>
Mon, 28 Nov 2011 00:39:46 +0000
(16:39 -0800)
committer
Michael Jumper <zhangmaike@users.sourceforge.net>
Mon, 28 Nov 2011 00:39:46 +0000
(16:39 -0800)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
b240278
..
1a92f88
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-171,6
+171,11
@@
void* __guac_client_input_thread(void* data) {
return NULL;
}
+ /* Reset guac_error and guac_error_message (client handlers are not
+ * guaranteed to set these) */
+ guac_error = GUAC_STATUS_SUCCESS;
+ guac_error_message = NULL;
+
/* Call handler, stop on error */
if (guac_client_handle_instruction(client, instruction) < 0) {