summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-09-13 22:41:41 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-09-13 22:41:41 +0000
commit3153f95a452fd9d7771b8f0395d4355839c4be0c (patch)
tree63dba96f9bc58ea3c4e264abb2b931ff41eca673
parent797bbc31202358cba772bfe146e63f6b088f450f (diff)
parentf80524611def5ce77986b198c293d298420a829d (diff)
downloadbsdiff-3153f95a452fd9d7771b8f0395d4355839c4be0c.tar.gz
Merge "Fix the unintialized value reported by msan"
-rw-r--r--bsdiff_arguments.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsdiff_arguments.cc b/bsdiff_arguments.cc
index 20e6149..7ea9b6d 100644
--- a/bsdiff_arguments.cc
+++ b/bsdiff_arguments.cc
@@ -75,7 +75,7 @@ bool BsdiffArguments::IsValid() const {
bool BsdiffArguments::ParseCommandLine(int argc, char** argv) {
int opt;
- int option_index;
+ int option_index = 0;
while ((opt = getopt_long(argc, argv, "", OPTIONS, &option_index)) != -1) {
if (opt != 0) {
return false;