summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamal Mostafa <kamal@whence.com>2012-04-04 19:24:02 +0000
committerKamal Mostafa <kamal@whence.com>2012-04-04 19:24:02 +0000
commit21fae3fbbebab7fcb834c25096696fa0dfab09e2 (patch)
tree688e1639919e933adb9e94c4505d1906d43ee8d0
parent087d02daa2d3305323092ac62184a63081e5964c (diff)
downloaddistcc-git-21fae3fbbebab7fcb834c25096696fa0dfab09e2.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.
-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__: