aboutsummaryrefslogtreecommitdiffhomepage
path: root/devel
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2013-02-20 18:24:37 -0400
committerGravatar David Bremner <bremner@debian.org>2013-03-02 10:42:45 -0400
commit16bf7b4b89b5ceb7f13ed318051ecd7c629d582b (patch)
tree7089a999acceb766cc4c82ffa80679961b322058 /devel
parentf7a7f78aebd7f0571cad7f4813ef18dac5247c73 (diff)
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.
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/nmbug/nmbug2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug
index b9c70e4b..90d98b63 100755
--- a/devel/nmbug/nmbug
+++ b/devel/nmbug/nmbug
@@ -13,7 +13,7 @@ my $NMBGIT = $ENV{NMBGIT} || $ENV{HOME}.'/.nmbug';
$NMBGIT .= '/.git' if (-d $NMBGIT.'/.git');
-my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::';
+my $TAGPREFIX = defined($ENV{NMBPREFIX}) ? $ENV{NMBPREFIX} : 'notmuch::';
# for encoding