client: client brand fix

This commit is contained in:
David Anderson 2014-07-16 21:00:10 -07:00
parent 246f5a2d1e
commit 9769c55f17
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ CLIENT_STATE::CLIENT_STATE()
core_client_version.prerelease = false;
#endif
strcpy(language, "");
strcpy(client_brand, "");
exit_after_app_start_secs = 0;
app_started = 0;
exit_before_upload = false;
@ -408,6 +409,7 @@ int CLIENT_STATE::init() {
FILE* f = fopen(CLIENT_BRAND_FILENAME, "r");
if (f) {
fgets(client_brand, sizeof(client_brand), f);
strip_whitespace(client_brand);
msg_printf(NULL, MSG_INFO, "Client brand: %s", client_brand);
fclose(f);
}