Commit 917d1458 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Test that it is defined, not logically true

The problem was that "0" was not eval-ed
parent 028a428f
...@@ -105,7 +105,7 @@ sub stringify { ...@@ -105,7 +105,7 @@ sub stringify {
sub destringify { sub destringify {
my $value = pop @_; my $value = pop @_;
if($value) { if(defined $value) {
if($value=~/^'.*'$/ if($value=~/^'.*'$/
or $value=~/^".*"$/ or $value=~/^".*"$/
or $value=~/^{.*}$/ or $value=~/^{.*}$/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment