summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamal@whence.com <kamal@whence.com@01de4be4-8c4a-0410-9132-4925637da917>2012-04-04 19:24:02 +0000
committerkamal@whence.com <kamal@whence.com@01de4be4-8c4a-0410-9132-4925637da917>2012-04-04 19:24:02 +0000
commit10a264caa0eeff8dd8b6dde00d42dc841b862335 (patch)
tree688e1639919e933adb9e94c4505d1906d43ee8d0
parent5976dbd5cadf47f100b913fb080262f85101126c (diff)
downloaddistcc-10a264caa0eeff8dd8b6dde00d42dc841b862335.tar.gz
Fix for distcc issue 99 <http://code.google.com/p/distcc/issues/detail?id=99>: include_server crash: local variable resolved referenced before assignment.
git-svn-id: http://distcc.googlecode.com/svn/trunk@759 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-xinclude_server/macro_eval.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/include_server/macro_eval.py b/include_server/macro_eval.py
index 1c20a56..49dce53 100755
--- a/include_server/macro_eval.py
+++ b/include_server/macro_eval.py
@@ -426,10 +426,11 @@ def ResolveExpr(includepath_map_index,
if match_result.group('quote'):
resolved = resolve(includepath_map_index(match_result.group('quote')),
currdir_idx, searchdir_idx, quote_dirs)
+ resolved_files.append(resolved)
elif match_result.group('angle'):
resolved = resolve(includepath_map_index(match_result.group('angle')),
currdir_idx, None, angle_dirs)
- resolved_files.append(resolved)
+ resolved_files.append(resolved)
else:
symbols.extend(SYMBOL_RE.findall(val))
if __debug__: