]> git.tue.mpg.de Git - adu.git/commitdiff
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 d5ce3e45d4300af7ebf5ba7fece05cc5e9ac2aef..d6585857e62e32d2e0abc2da8bb0ff6d6683779a 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);