iograph: Use default graph values if io_graphs UAT file doesn't pass validation

Change-Id: I70c8ca7b5b31d284a12220fc6ce2a764ea9fbe6b
Fixes: v2.5.0rc0-631-g5b3e3ee587 ("Use UAT model for I/O graph")
Reviewed-on: https://code.wireshark.org/review/23366
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Peter Wu 2017-09-03 00:33:54 +01:00 committed by Anders Broman
parent 1c25b71c7b
commit 35a1907fe6
1 changed files with 2 additions and 1 deletions

View File

@ -1135,8 +1135,9 @@ void IOGraphDialog::loadProfileGraphs()
char* err = NULL;
if (!uat_load(iog_uat_, &err)) {
/* XXX - report the error */
report_failure("Error while loading %s: %s. Default graph values will be used", iog_uat_->name, err);
g_free(err);
uat_clear(iog_uat_);
}
}