diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-10 21:13:47 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-10 21:13:47 -0700 |
commit | 61c5b631f3d0050984c938e63525fe8e22fabff2 (patch) | |
tree | 49243793199c5a0f7f0265345204287b517f3997 /fish_pager.cpp | |
parent | b993dce12ff3e5b8e38c761706c9db1ef101aee4 (diff) |
Fix for infinite loop in cycle_competions, and potential issue in
fish_pager when given an empty completion list
Diffstat (limited to 'fish_pager.cpp')
-rw-r--r-- | fish_pager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index 848eb0fc..9cde933e 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -1370,6 +1370,11 @@ int main(int argc, char **argv) // debug( 3, L"prefix is '%ls'", prefix ); + if (comp.empty()) + { + exit_without_destructors(EXIT_FAILURE); + } + init(mangle_descriptors, result_fd); mangle_descriptions(comp); |