aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-08-16 22:16:37 +0300
committerSergey Poznyakoff <gray@gnu.org>2021-09-03 13:23:50 +0300
commit7da46693e82754a4a16ddebeeb3211984f8b0e39 (patch)
treeeca602741a90025ce2763118b76198d86c24be62 /src
parent9e4213610f56454a84d614511e5ed7c7c9bd2591 (diff)
downloadgdbm-7da46693e82754a4a16ddebeeb3211984f8b0e39.tar.gz
gdbm-7da46693e82754a4a16ddebeeb3211984f8b0e39.tar.bz2
Allow for [+-]all in the errormask value
Diffstat (limited to 'src')
-rw-r--r--src/var.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/var.c b/src/var.c
index f5fdaf3..f15a291 100644
--- a/src/var.c
+++ b/src/var.c
@@ -730,6 +730,11 @@ errormask_sethook (struct variable *var, union value *v)
val = 0;
t++;
}
+ else if (t[0] == '+')
+ {
+ val = 1;
+ t++;
+ }
else
{
val = 1;

Return to:

Send suggestions and report system problems to the System administrator.