From 58126f3753a4c2fa2ff3823aa3004578ec7dada4 Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Sun, 21 Jan 2007 17:06:16 +0000 Subject: fix bug 1321 svn path=/trunk/; revision=20515 --- epan/wslua/template-init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'epan/wslua') diff --git a/epan/wslua/template-init.lua b/epan/wslua/template-init.lua index 24dc4156e2..8128f01409 100644 --- a/epan/wslua/template-init.lua +++ b/epan/wslua/template-init.lua @@ -51,7 +51,9 @@ end -- to avoid output to stdout which can cause problems lua's print () -- has been suppresed so that it yields an error. -- have print() call info() instead. -print = info +if gui_enabled() then + print = info +end -- %WTAP_ENCAPS% -- cgit v1.2.1