nmbug: allow empty prefix

Current code does not distinguish between an empty string in the
NMBPREFIX environment variable and the variable being undefined. This
makes it impossible to define an empty prefix, if, e.g. somebody wants
to dump all of their tags with nmbug.
This commit is contained in:
David Bremner 2013-02-20 18:24:37 -04:00
parent f7a7f78aeb
commit 16bf7b4b89

View file

@ -13,7 +13,7 @@ my $NMBGIT = $ENV{NMBGIT} || $ENV{HOME}.'/.nmbug';
$NMBGIT .= '/.git' if (-d $NMBGIT.'/.git'); $NMBGIT .= '/.git' if (-d $NMBGIT.'/.git');
my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::'; my $TAGPREFIX = defined($ENV{NMBPREFIX}) ? $ENV{NMBPREFIX} : 'notmuch::';
# for encoding # for encoding