From 54f375127098b7359b4c9f86d742a9f33a5cb644 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 2 Sep 2012 23:49:40 -0700 Subject: [PATCH] fixed regression to allow no given extracmds, histogram or y2 options --- bin/feedgnuplot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index aff065c..8fa7364 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -120,7 +120,8 @@ sub interpretCommandline # expand options that are given as comma-separated lists for my $listkey (qw(extracmds histogram y2)) { - @{$options{$listkey}} = map split('\s*,\s*', $_), @{$options{$listkey}}; + @{$options{$listkey}} = map split('\s*,\s*', $_), @{$options{$listkey}} + if defined $options{$listkey}; } # parse stream option. Allowed only numbers >= 0 or 'trigger'