diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2012-03-30 11:12:03 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2012-03-30 11:12:03 +0000 |
commit | b651bbac3552c7c4d43996770fecc01fa1475767 (patch) | |
tree | 3ed616046f9322eeb67e4acd687e11668a1b22ac /epan | |
parent | adabb3d63ed6bbc52f9cbb70eff5bd8eafe53084 (diff) |
Call uat->post_update_cb also when not having the uat file.
This is because some uat's do cleanup in the init routine, which is needed
when changing profile.
svn path=/trunk/; revision=41842
Diffstat (limited to 'epan')
-rw-r--r-- | epan/uat_load.l | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l index 3ad28ed08b..f1df697db4 100644 --- a/epan/uat_load.l +++ b/epan/uat_load.l @@ -280,6 +280,10 @@ gboolean uat_load(uat_t* uat_in, char** err) { if (!fname) { UAT_UPDATE(uat); + + if (uat->post_update_cb) + uat->post_update_cb(); + return TRUE; } @@ -312,7 +316,7 @@ gboolean uat_load(uat_t* uat_in, char** err) { return FALSE; } - if (uat->post_update_cb) + if (uat->post_update_cb) uat->post_update_cb(); *err = NULL; @@ -347,7 +351,7 @@ gboolean uat_load_str(uat_t* uat_in, char* entry, char** err) { return FALSE; } - if (uat->post_update_cb) + if (uat->post_update_cb) uat->post_update_cb(); *err = NULL; |