aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-12-14 22:17:46 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2015-12-14 21:19:34 +0000
commit39cc323722b0aee95cad3febee628737dc7981cb (patch)
tree82495d58f79b105d7c9c4f22b16c7ba93e359def /epan
parent28207e5b82e7b667b2ea3bd15445b03e4fa7e6d5 (diff)
Lua: Fix switch-case braces.
+ fixed a comment. Change-Id: Ib1a8449054afde3b4df7ad57f0c3da07016281c2 Reviewed-on: https://code.wireshark.org/review/12635 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan')
-rw-r--r--epan/wslua/wslua_pref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_pref.c b/epan/wslua/wslua_pref.c
index 95e76cdd00..daa9f5a062 100644
--- a/epan/wslua/wslua_pref.c
+++ b/epan/wslua/wslua_pref.c
@@ -280,7 +280,7 @@ static int Pref__gc(lua_State* L) {
case PREF_STRING:
/*
* Free the initial string value; if it's not NULL, that
- * means this is a never-registered protocol, so the
+ * means this is a never-registered preference, so the
* initial value hasn't been freed.
*/
g_free(pref->info.default_s);
@@ -297,9 +297,9 @@ static int Pref__gc(lua_State* L) {
}
g_free ((enum_val_t *)pref->info.enum_info.enumvals);
break;
+ }
default:
break;
- }
}
g_free(pref);
}