Skip to content

Commit b5c98a0

Browse files
committed
Fix a default value being mutable
1 parent 63f7cbd commit b5c98a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

volatility3/cli/volshell/generic.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
8585
return reqs
8686

8787
def run(
88-
self, additional_locals: Dict[str, Any] = {}
88+
self, additional_locals: Dict[str, Any] = None
8989
) -> interfaces.renderers.TreeGrid:
9090
"""Runs the interactive volshell plugin.
9191
9292
Returns:
9393
Return a TreeGrid but this is always empty since the point of this plugin is to run interactively
9494
"""
9595

96+
if additional_locals is None:
97+
additional_locals = {}
98+
9699
# Try to enable tab completion
97100
if not has_ipython:
98101
try:

0 commit comments

Comments
 (0)