aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-17 16:40:28 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-18 00:41:09 +0000
commit859511db14feae071cc1e6e1889ae39bfd276faa (patch)
treea6ef5501110220c93d583439f5f0257c243cde64 /ui
parent3f765b3ef94fd6044279d47d0b30b46c344e5943 (diff)
Make UAT record update callbacks return a success/failure indication.
Have them return TRUE on success and FALSE on failure. Check the return value rather than whether the error string pointer is null or not. Change-Id: I800a03bcd70a6bbb7b217cf7c4800e9cdcf2189c Reviewed-on: https://code.wireshark.org/review/7222 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/uat_gui.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gtk/uat_gui.c b/ui/gtk/uat_gui.c
index 1b30680b76..e4de9ffe7d 100644
--- a/ui/gtk/uat_gui.c
+++ b/ui/gtk/uat_gui.c
@@ -375,9 +375,7 @@ static gboolean uat_dlg_cb(GtkWidget *win _U_, gpointer user_data) {
}
if (dd->uat->update_cb) {
- dd->uat->update_cb(dd->rec, &err);
-
- if (err) {
+ if (!dd->uat->update_cb(dd->rec, &err)) {
tmp_err = err;
err = g_strdup_printf("error updating record: %s", tmp_err);
g_free(tmp_err);