diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2014-03-07 17:01:35 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-03-07 17:01:35 -0800 |
commit | c8b09b01f69424b86b71d3a4ddba0a4704a3fcab (patch) | |
tree | 1b540f6cc60225b3ad37aad92f4c67900eb2aeea | |
parent | e0f471a2f2a22d830069eeb153257ff4b72a5e9a (diff) |
wflinfo: Initialize opts->context_profile to WAFFLE_NONE, not -1
wflinfo initialized context_profile to -1 so that it could detect if the
user gave --profile on the cmdline. But wflinfo didn't use that
information.
This patch should not change wflinfo's behavior. But it's required to
make work Jordan's next patch to allow --profile=compat without
--version.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | src/utils/wflinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index ee0a50b..ed61620 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -311,8 +311,8 @@ parse_args(int argc, char *argv[], struct options *opts) removeXcodeArgs(&argc, argv); #endif - // Set some context attrs to invalid values. - opts->context_profile = -1; + // Set options to default values. + opts->context_profile = WAFFLE_NONE; opts->context_version = -1; // prevent getopt_long from printing an error message |