Remove -O2, check rfbInitClient return value, provide return value in client init

This commit is contained in:
Michael Jumper
2010-09-20 18:13:32 -07:00
parent 72277b50aa
commit 79fabff39d
7 changed files with 26 additions and 12 deletions

View File

@@ -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

View File

@@ -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