chiark / gitweb /
fix randonm findings from llvm-clang-analyzer
[elogind.git] / udev / udev-rules.c
index bc224040d215bce342aefb8a9840efe9a17c276e..a85800adf2e96d47d610fdf2d457ac036f60f4c7 100644 (file)
@@ -1127,7 +1127,7 @@ static int sort_token(struct udev_rules *rules, struct rule_tmp *rule_tmp)
 
        for (i = 0; i < rule_tmp->token_cur; i++) {
                enum token_type next_val = TK_UNSET;
-               unsigned int next_idx;
+               unsigned int next_idx = 0;
                unsigned int j;
 
                /* find smallest value */