diff options
author | Guillem Jover <guillem@debian.org> | 2014-05-01 03:44:33 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-05-17 09:29:09 +0200 |
commit | 42f8e27790df66a088f21f357c449be0dc6a40a5 (patch) | |
tree | d3a3933dd148a20cec91cb90304142a26a2e2b01 /dselect | |
parent | 93a8d7423561f90559a00a760945e529a5e6e414 (diff) | |
download | dpkg-42f8e27790df66a088f21f357c449be0dc6a40a5.tar.gz |
dselect: Fix word wrapping logic
The switch from integer literal to boolean literals botched one of the
assignments, which was turned from 1 to false, fix that now, and stop
turning parts of the code path dead.
Regression introduced in commit cf21cccb98bdb31a84bbe1aa1217c712b47aedd2.
Warned-by: coverity
Diffstat (limited to 'dselect')
-rw-r--r-- | dselect/baselist.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc index 6635ddbcd..eb1811d60 100644 --- a/dselect/baselist.cc +++ b/dselect/baselist.cc @@ -364,7 +364,7 @@ void baselist::wordwrapinfo(int offset, const char *m) { if (l <= 0) break; waddch(infopad,'\n'); } - wrapping = false; + wrapping = true; } if (!p) break; if (getcury(infopad) == (MAX_DISPLAY_INFO - 1)) { |