Index: src/platform/update_engine/subprocess.cc |
diff --git a/src/platform/update_engine/subprocess.cc b/src/platform/update_engine/subprocess.cc |
index 299d7588bb3de2d2dd86ebc3d36ccafe8764e607..89b6cadd03fd56fa88ecf875d78a6040cedee9ca 100644 |
--- a/src/platform/update_engine/subprocess.cc |
+++ b/src/platform/update_engine/subprocess.cc |
@@ -80,7 +80,7 @@ void Subprocess::CancelExec(uint32 tag) { |
bool Subprocess::SynchronousExec(const std::vector<std::string>& cmd, |
int* return_code) { |
- GError *err; |
+ GError *err = NULL; |
scoped_array<char *> argv(new char*[cmd.size() + 1]); |
for (unsigned int i = 0; i < cmd.size(); i++) { |
argv[i] = strdup(cmd[i].c_str()); |
@@ -100,6 +100,8 @@ bool Subprocess::SynchronousExec(const std::vector<std::string>& cmd, |
return_code, |
&err); |
FreeArgv(argv.get()); |
+ if (err) |
+ LOG(INFO) << "err is: " << err->code << ", " << err->message; |
return success; |
} |