GUACAMOLE-422: Quick fixes for style and logging.

This commit is contained in:
Nick Couchman 2018-11-12 11:55:07 -05:00
parent 9a944637be
commit f61539c4e7

View File

@ -1283,9 +1283,10 @@ void guac_rdp_push_settings(guac_client* client,
/* Timezone redirection */ /* Timezone redirection */
if (guac_settings->timezone) { if (guac_settings->timezone) {
if(setenv("TZ", guac_settings->timezone, 1)) { if (setenv("TZ", guac_settings->timezone, 1)) {
guac_client_log(client, GUAC_LOG_WARNING, guac_client_log(client, GUAC_LOG_WARNING,
"Unable to set TZ variable, error %i", errno); "Unable to forward timezone: TZ environment variable "
"could not be set: %s", sterror(errno));
} }
} }