Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize all variables that could be unassigned
Due to the convoluted logic of the edit() function, multiple variables may be referenced before proper assignment unless they are given a value of `None` first. Unfortunately, at least two such variables were potentially referenced without being initialized first (among other things, causing the crash mentioned in #2783). This ensures all variables that may remain "unassigned" are initialized to `None` at the start of the function.
- Loading branch information