summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-03-11 20:50:19 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-03-11 20:50:19 +0000
commit756824e9199c7e73e646b5283ff389f88c4865a6 (patch)
tree8431d88db0c969244515b66fa05bfe956230b0e0
parent7be108625468af625a10952d8b4a2cb81443968d (diff)
downloadwireshark-756824e9199c7e73e646b5283ff389f88c4865a6.tar.gz
Fix Coverity CID 989732: Structurally dead code.
Also, change a few tabs -> spaces. Add modelines. svn path=/trunk/; revision=48257
-rw-r--r--epan/wslua/init_wslua.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index 3c5c58ed26..046104c472 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -255,14 +255,10 @@ static gboolean lua_load_script(const gchar* filename) {
fclose(file);
return FALSE;
default:
- report_failure("Lua: unspecified error during execution of %s", filename);
- fclose(file);
- return FALSE;
+ report_failure("Lua: unknown error during execution of %s: %d",filename,error);
+ fclose(file);
+ return FALSE;
}
-
- report_failure("Lua: unknown error during execution of %s: %d",filename,error);
- fclose(file);
- return FALSE;
}
static void basic_logger(const gchar *log_domain _U_,
@@ -353,7 +349,7 @@ int wslua_init(register_cb cb, gpointer client_data) {
/* the init_routines table (accessible by the user) */
lua_newtable (L);
- lua_setglobal(L, WSLUA_INIT_ROUTINES);
+ lua_setglobal(L, WSLUA_INIT_ROUTINES);
/* the dissectors table goes in the registry (not accessible) */
lua_newtable (L);
@@ -441,3 +437,17 @@ int wslua_init(register_cb cb, gpointer client_data) {
}
lua_State* wslua_state(void) { return L; }
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=4 expandtab:
+ * :indentSize=4:tabSize=4:noTabs=true:
+ */
+