summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-06 09:34:00 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-06 09:34:00 +0100
commit7f7c35f1dd5032b22c6af20db7caca3335096a0d (patch)
tree3033fc548433301c547576bf7cce1e7b9ac87fc4 /src/lib
parentc7dbefa410221effc189810611df60e5be1ffcc0 (diff)
Fix warning.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 200d311dc..86046bcf8 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -283,7 +283,8 @@ terminate ()
try {
// try once to re-throw currently active exception
- if (!tried_throw++) {
+ if (!tried_throw) {
+ tried_throw = true;
throw;
}
}