diff options
author | Yorhel <git@yorhel.nl> | 2018-01-29 11:56:37 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2018-01-29 11:58:14 +0100 |
commit | 7ba0f15f807e40e4113acbf8df0d80f3bd7f5812 (patch) | |
tree | 756a770490eae5cf345971ed2f350def913a7784 | |
parent | 8107831a2b7b9751e9590d13418d208467cdae5b (diff) |
delete.c: Fix signedness issue in confirmation selection
'char' may be unsigned on some architectures, which will cause the
"overflow check" on decrement to fail.
This would at most result in a confusing UI issue where no confirmation
option appears to be selected.
-rw-r--r-- | src/delete.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/delete.c b/src/delete.c index 336b504..4fc4d13 100644 --- a/src/delete.c +++ b/src/delete.c @@ -37,7 +37,8 @@ static struct dir *root, *nextsel, *curdir; -static char noconfirm = 0, ignoreerr = 0, state, seloption; +static char noconfirm = 0, ignoreerr = 0, state; +static signed char seloption; static int lasterrno; |