projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b98f75d
)
altos: Make sure config values are loaded in 'c s' command
author
Keith Packard
<keithp@keithp.com>
Wed, 28 Mar 2012 07:38:37 +0000
(
00:38
-0700)
committer
Keith Packard
<keithp@keithp.com>
Wed, 28 Mar 2012 07:39:56 +0000
(
00:39
-0700)
ao_config_get may not have been called when ao_config_show is invoked
by the user, so make sure the config values are loaded before showing
uninitialized data.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_config.c
patch
|
blob
|
history
diff --git
a/src/core/ao_config.c
b/src/core/ao_config.c
index 350ebcbe66d5721a509e71ab48f6ff02ea788388..08e6deeae1ef84ae6b9648fc0ddd366a0f023949 100644
(file)
--- a/
src/core/ao_config.c
+++ b/
src/core/ao_config.c
@@
-609,6
+609,7
@@
static void
ao_config_show(void) __reentrant
{
uint8_t cmd;
+ ao_config_get();
printf("Config version: %d.%d\n",
ao_config.major, ao_config.minor);
for (cmd = 0; ao_config_vars[cmd].str != NULL; cmd++)