Fix a compiler warning.
authorAndre Noll <maan@systemlinux.org>
Wed, 12 Nov 2008 17:12:40 +0000 (18:12 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 12 Nov 2008 17:12:40 +0000 (18:12 +0100)
It's kinda bogus, but anyway. It fixes

select.c:532: warning: 'comp' may be used uninitialized in this function

select.c

index d5ce3e4..d658585 100644 (file)
--- a/select.c
+++ b/select.c
@@ -559,6 +559,9 @@ static int print_user_summary(struct format_info *fi)
        case user_summary_sort_arg_size:
                comp = size_comp;
                break;
+       default: /* this should never happen, but anyway */
+               comp = size_comp;
+               break;
        }
        sort_hash_table(comp);
        ret = for_each_admissible_user(print_user_summary_line, &usli);