mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Remove -O2, check rfbInitClient return value, provide return value in client init
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
CFLAGS+=-O2 -pedantic -Wall -Werror -I../libguac/include
|
||||
CFLAGS+= -pedantic -Wall -Werror -I../libguac/include
|
||||
LDFLAGS=-L../libguac -lpng -lguac -ldl -lpthread
|
||||
|
||||
.PHONY: clean
|
||||
|
@@ -53,6 +53,12 @@ void* start_client_thread(void* data) {
|
||||
|
||||
/* Load and start client */
|
||||
client = guac_get_client(thread_data->fd, thread_data->registry, thread_data->client_init, thread_data->argc, thread_data->argv);
|
||||
|
||||
if (client == NULL) {
|
||||
syslog(LOG_ERR, "Client retrieval failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
guac_start_client(client);
|
||||
|
||||
/* FIXME: Need to free client, but only if the client is not
|
||||
|
Reference in New Issue
Block a user