Skip to content

Commit ddbc784

Browse files
committed
Let's initialize events
1 parent 6382f4d commit ddbc784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/YMGANCMenuBar.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ bool YMGANCMenuBar::HasHotkey(int key)
187187
NCursesEvent YMGANCMenuBar::wHandleHotkey( wint_t key )
188188
{
189189
yuiDebug() << key << std::endl;
190-
NCursesEvent ret;
190+
NCursesEvent ret = NCursesEvent::none;
191191
__MBItem *sel = NULL;
192192
for (struct __MBItem *i : d->items)
193193
{
@@ -214,7 +214,7 @@ NCursesEvent YMGANCMenuBar::wHandleHotkey( wint_t key )
214214
NCursesEvent YMGANCMenuBar::wHandleInput( wint_t key )
215215
{
216216
yuiDebug() << "wHandleInput " << key << std::endl;
217-
NCursesEvent ret;
217+
NCursesEvent ret = NCursesEvent::none;
218218

219219
if (itemsBegin() != itemsEnd())
220220
{

0 commit comments

Comments
 (0)