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:
parent
7e68901ceb
commit
03d9c51b5d
@ -786,7 +786,7 @@ int guac_terminal_find_color(const char* name, guac_terminal_color* color) {
|
|||||||
guac_terminal_named_color_search);
|
guac_terminal_named_color_search);
|
||||||
|
|
||||||
/* Fail if no such color is found */
|
/* Fail if no such color is found */
|
||||||
if (color == NULL)
|
if (found == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Otherwise copy the found color */
|
/* Otherwise copy the found color */
|
||||||
|
Loading…
Reference in New Issue
Block a user