From bb1cbbe82a40a9cffb8d143bed2e3aa245595450 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 27 Dec 2008 14:26:02 +0000 Subject: [PATCH] sym-gtest: Don't include empty words. Organization: Straylight/Edgeware From: Mark Wooding An empty word in a command like `set LABEL' provokes a segfault from sym-test -- not entirely unreasonably considering that sym-test is a quick lash-up and not intended to be robust against bogus test scripts. So filter them out in advance. --- sym-gtest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sym-gtest b/sym-gtest index 3dd6ed6..ac5bcaf 100755 --- a/sym-gtest +++ b/sym-gtest @@ -18,7 +18,7 @@ sub random ($) { $words = "/usr/dict/words"; -r $words or $words = "/usr/share/dict/words"; open(DICT, $words) or die("open($words): $!"); -@w = ; +@w = grep /./, ; chomp(@w); close(DICT); -- [mdw]