Merge "Fixed check if zip file was generated properly."
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 369a29f..b349a23 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -853,7 +853,7 @@
bool do_text_file = true;
if (do_zip_file) {
path = zip_path;
- if (generate_zip_file(tmp_path, zip_path, entry_name, now)) {
+ if (!generate_zip_file(tmp_path, zip_path, entry_name, now)) {
ALOGE("Failed to generate zip file; sending text bugreport instead\n");
do_text_file = true;
} else {