From dc16d93b77e4667232d516bb01c8be6ea63894ed Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 21 Aug 2016 21:47:45 +0100 Subject: [PATCH] Alter the config.path_join function to remove empty sections. --- volatility/framework/interfaces/configuration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volatility/framework/interfaces/configuration.py b/volatility/framework/interfaces/configuration.py index ac18d9e13..778f17e4a 100644 --- a/volatility/framework/interfaces/configuration.py +++ b/volatility/framework/interfaces/configuration.py @@ -11,6 +11,8 @@ CONFIG_SEPARATOR = "." def path_join(*args): """Joins the config paths together""" + # If a path element (particularly the first) is empty, then remove it from the list + args = [arg for arg in args if arg] return CONFIG_SEPARATOR.join(args)