shell: Fix 2 switcher crashes.
authorAlex Wu <zhiwen.wu@linux.intel.com>
Mon, 12 Mar 2012 08:06:01 +0000 (16:06 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 21 Mar 2012 02:43:54 +0000 (22:43 -0400)
commit07b2606c7a2ba785b7281d58a58b20cc9172c3ab
treef376d9586710399daa9cf436957b963a877e084d
parente7ad5cdcd2eb8a307ad9cf2efdfde76f2e83aeb7
shell: Fix 2 switcher crashes.

In case of no regular window, switcher will crash in switch_next()
due to "next == NULL" and in switcher_destroy() due to
"switcher->current == NULL".
src/shell.c