]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
Fix some variable deletions in the bash autocomplete handling
authorDavid Howells <dhowells@redhat.com>
Thu, 12 Jun 2014 08:19:23 +0000 (09:19 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 12 Jun 2014 08:19:23 +0000 (09:19 +0100)
Signed-off-by: David Howells <dhowells@redhat.com>
suite/bash-comp-helper.py

index 25c1e542b0467c03b76edab9013f6d91e72f0e9b..aef5986e1c20d04042c458e8bd0e66bd4db6fded 100755 (executable)
@@ -207,12 +207,14 @@ def main():
             else:
                 canon_flags.append(None)
             word_types.append(None)
+            del j, switch, match
         else:
             canon_flags.append(None)
             word_types.append(None)
             skip_flag = False
         additional_args.append(False)
-    del i, j, word, switch, match, skip_flag
+        del word
+    del i, skip_flag
 
     # We need to eliminate any arguments that have already been used
     argnames = []