GUACAMOLE-470: Fix crash when X11 color is not found.

Fix a crash when an X11 color name is not found. The variable to
null-check should be `found`, not `color`.
This commit is contained in:
Jim Chen 2018-05-16 00:11:30 -04:00
parent 7e68901ceb
commit 03d9c51b5d

View File

@ -786,7 +786,7 @@ int guac_terminal_find_color(const char* name, guac_terminal_color* color) {
guac_terminal_named_color_search);
/* Fail if no such color is found */
if (color == NULL)
if (found == NULL)
return 1;
/* Otherwise copy the found color */