diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-01 20:28:00 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-01 21:58:10 +0200 |
commit | c1f742d7750a14b680d2ceb2c75d952ccb53585d (patch) | |
tree | 465d3797707040f7bba873596020a0ddca42b466 /lib/libalpm/md5.h | |
parent | aad57cc06ac60dc8fdcff9bea811e990d64f74d3 (diff) | |
download | pacman-c1f742d7750a14b680d2ceb2c75d952ccb53585d.tar.gz pacman-c1f742d7750a14b680d2ceb2c75d952ccb53585d.tar.xz |
Ensure list_display works on outputs of unknown width
If getcols() returns 0, we were getting stuck before in a loop of no
return. Teach getcols() to take a default value to return if the width
is unknown, and use this everywhere as appropriate.
Also make a few other cleanups while diagnosing this issue, such as
const-ifying some variables.
Noticed-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/md5.h')
0 files changed, 0 insertions, 0 deletions