summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/option.h2
-rwxr-xr-xtools/proof20
2 files changed, 11 insertions, 11 deletions
diff --git a/src/option.h b/src/option.h
index 772f2b01..b0d4e0f0 100644
--- a/src/option.h
+++ b/src/option.h
@@ -68,7 +68,7 @@ public:
option_t(const char * _name, const char _ch = '\0')
: name(_name), name_len(std::strlen(name)), ch(_ch),
handled(false), parent(NULL), value(),
- wants_arg(name[name_len - 1] == '_') {
+ wants_arg(name_len > 0 ? name[name_len - 1] == '_' : false) {
DEBUG("option.names", "Option: " << name);
TRACE_CTOR(option_t, "const char *, const char");
}
diff --git a/tools/proof b/tools/proof
index c4d3c9f1..33f825de 100755
--- a/tools/proof
+++ b/tools/proof
@@ -20,19 +20,19 @@ ledger_proof() {
time nice -n 20 \
./acprep --debug --enable-doxygen --universal --gcc47 -j16 proof 2>&1 | \
- tee -a $LOGDIR/ledger-proof.log
+ tee -a $LOGDIR/ledger-proof-gcc47.log
time nice -n 20 \
./acprep --debug --enable-doxygen --universal --python --gcc47 -j16 proof 2>&1 | \
- tee -a $LOGDIR/ledger-proof.log
-
- time nice -n 20 \
- ./acprep --debug --enable-doxygen --universal --clang -j16 proof 2>&1 | \
- tee -a $LOGDIR/ledger-proof.log
-
- time nice -n 20 \
- ./acprep --debug --enable-doxygen --universal --python --clang -j16 proof 2>&1 | \
- tee -a $LOGDIR/ledger-proof.log
+ tee -a $LOGDIR/ledger-proof-gcc47-python.log
+
+ #time nice -n 20 \
+ # ./acprep --debug --enable-doxygen --universal --clang -j16 proof 2>&1 | \
+ # tee -a $LOGDIR/ledger-proof-clang.log
+ #
+ #time nice -n 20 \
+ # ./acprep --debug --enable-doxygen --universal --python --clang -j16 proof 2>&1 | \
+ # tee -a $LOGDIR/ledger-proof-clang-python.log
if egrep -q '(ERROR|CRITICAL)' $LOGDIR/ledger-proof.log; then
mutt -a $LOGDIR/ledger-proof.log \