summaryrefslogtreecommitdiff
path: root/libpackagelistparser
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-08-12 23:45:36 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-08-12 23:45:36 +0000
commit92a3594b12717cadc563bfd227a255dc9f8cc92c (patch)
treeac70ca6ef138cff57379e13c8361c35215d12db5 /libpackagelistparser
parentb5d064f5c6587cf2bcf8a2627f6de4296ffb2d44 (diff)
parent38b6297bac6cb3aaa9503c125ec4f4989d9d997d (diff)
Merge "libpackageparser: C rules for bools."
Diffstat (limited to 'libpackagelistparser')
-rw-r--r--libpackagelistparser/packagelistparser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpackagelistparser/packagelistparser.cpp b/libpackagelistparser/packagelistparser.cpp
index ddf558b5b4..59c3a7491a 100644
--- a/libpackagelistparser/packagelistparser.cpp
+++ b/libpackagelistparser/packagelistparser.cpp
@@ -92,10 +92,7 @@ static bool parse_line(const char* path, size_t line_number, const char* line, p
info->uid = uid;
// Integer to bool conversions.
- if (debuggable != 0 && debuggable != 1) return false;
info->debuggable = debuggable;
-
- if (profileable_from_shell != 0 && profileable_from_shell != 1) return false;
info->profileable_from_shell = profileable_from_shell;
return true;