From bb3dc6982ee2ad65eec6e54b62e051172d3d251b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 9 Apr 2014 17:19:30 +0200 Subject: [PATCH] CMenuItem: reduce scope of str, trivial Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9dc59ec55647d3af1a7e65407ca5b17447b5104a Author: Thilo Graf Date: 2014-04-09 (Wed, 09 Apr 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index c30a18870..bf309adb5 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -142,10 +142,9 @@ void CMenuItem::paintItemCaption(const bool select_mode, const int &item_height, { if (select_mode) { - char str[256]; - if (right_text != NULL) { + char str[256]; snprintf(str, 255, "%s %s", left_text, right_text); CVFD::getInstance()->showMenuText(0, str, -1, true); }