GUAC-1389: Explain significance of the type-punning union.

This commit is contained in:
Michael Jumper 2016-03-01 10:31:33 -08:00
parent 76e3b2ebb8
commit ea1a34083c

View File

@ -529,6 +529,8 @@ int guac_client_load_plugin(guac_client* client, const char* protocol) {
char protocol_lib[GUAC_PROTOCOL_LIBRARY_LIMIT] =
GUAC_PROTOCOL_LIBRARY_PREFIX;
/* Type-pun for the sake of dlsym() - cannot typecast a void* to a function
* pointer otherwise */
union {
guac_client_init_handler* client_init;
void* obj;