summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 16299c0..0f16519 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -178,7 +178,8 @@ bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface,
for (vector<StringPiece>::iterator i = makefile.ins_.begin();
i != makefile.ins_.end(); ++i, ++implicit_dep) {
string path(i->str_, i->len_);
- CanonicalizePath(&path);
+ if (!CanonicalizePath(&path, err))
+ return false;
Node* node = state->GetNode(path);
*implicit_dep = node;