diff options
author | Peter Foley <pefoley2@pefoley.com> | 2017-05-04 14:00:20 +0200 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-05-04 17:00:32 +0200 |
commit | 19a3363786f8b46534d1c86bceba0a63fd0dbf36 (patch) | |
tree | dfc2dcb9f7edc1369266313dc23a64a9399136f5 /src/main/tools | |
parent | 8bd4312fb8e738fe0cf7bd5edb5152db6325c6ad (diff) |
Fix potential uninitialized variable usage in linux-sandbox-options.cc
if (!source_specified) {
^
src/main/tools/linux-sandbox-options.cc:126:8: note: 'source_specified' was declared here bool source_specified;
^
Closes #2735.
PiperOrigin-RevId: 155067584
Diffstat (limited to 'src/main/tools')
-rw-r--r-- | src/main/tools/linux-sandbox-options.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/tools/linux-sandbox-options.cc b/src/main/tools/linux-sandbox-options.cc index 0d56f7ce62..095bfb9023 100644 --- a/src/main/tools/linux-sandbox-options.cc +++ b/src/main/tools/linux-sandbox-options.cc @@ -95,7 +95,7 @@ static void ParseCommandLine(unique_ptr<vector<char *>> args) { extern char *optarg; extern int optind, optopt; int c; - bool source_specified; + bool source_specified = false; while ((c = getopt(args->size(), args->data(), ":W:T:t:l:L:w:e:M:m:HNRUD")) != -1) { |