This can make ->home NULL which times_up() no trips over.
I should probably discard this ccache stuff.
Signed-off-by: NeilBrown <neil@brown.name>
Core features
-------------
+- [ ] Discard ccache ??
- [ ] Ensure all panes that should use "Free" properly, and find some
what to encourage its use.
- [ ] Add optional unit-test interface for modules. This should be
/* fall-through */
case TYPE_focus:
if (ccache) {
- ci.home = ccache->home;
- ci.comm = ccache->comm;
+ if ((void*)ccache->home)
+ ci.home = ccache->home;
+ if ((void*)ccache->comm)
+ ci.comm = ccache->comm;
}
ret = key_handle(&ci);
break;