Fixed check if zip file was generated properly.

During the earlier development stages, this function was returning an
int and later it was changed to boolean, but the check was not updated.

BUG: 25563823
Change-Id: I77f50bf2184d5dd4da2156a5eca4c8a555b567a4
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 {