bugfix: 'init' changes state, not main()
commit3debd59c5ec2a91146e1d2781bedf2ab36ee0c6c
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 29 Nov 2009 07:08:05 +0000 (28 23:08 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 29 Nov 2009 07:11:31 +0000 (28 23:11 -0800)
tree2bb382f61d4890d703f727093042a3b14cfd2d8f
parentb0858e89c7a7cf761c2f67db835d17840fd830ee
bugfix: 'init' changes state, not main()

Code other than main() may invoke "init".  When it does so,
customized handlers may need to run ... so make sure the
command context state is updated before they do so.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/openocd.c