diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-05 20:51:27 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-03-05 20:51:27 +0100 |
| commit | 80767d52e5ab3c2669b96749c49d80a34f1b2fb5 (patch) | |
| tree | 524277c24e2148c3b8adff520e9e6e97049f9489 /kconfiglib.py | |
| parent | f692b56aab1e30f05f7ebbdefb402bf2557949dd (diff) | |
Move 'val' initialization a bit later in tri_value()
Makes it harder to miss.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index f378dc5..93dc577 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2813,12 +2813,13 @@ class Symbol(object): self._cached_tri_val = 0 return 0 - val = 0 # Warning: See Symbol._rec_invalidate(), and note that this is a hidden # function call (property magic) vis = self.visibility self._write_to_conf = (vis != 0) + val = 0 + if not self.choice: # Non-choice symbol |
