summaryrefslogtreecommitdiff
path: root/src/Basemenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Basemenu.cc')
-rw-r--r--src/Basemenu.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 46a5735..70e0b42 100644
--- a/src/Basemenu.cc
+++ b/src/Basemenu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Basemenu.cc,v 1.23 2002/05/15 09:35:49 fluxgen Exp $ 25// $Id: Basemenu.cc,v 1.24 2002/05/19 12:22:55 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -812,9 +812,9 @@ void Basemenu::drawItem(unsigned int index, bool highlight, bool clear,
812} 812}
813 813
814 814
815void Basemenu::setLabel(const char *l) { 815void Basemenu::setLabel(const char *labelstr) {
816 //we don't want 0 to std::string 816 //make sure we don't send 0 to std::string
817 menu.label = l ? l : ""; 817 menu.label = (labelstr ? labelstr : "");
818} 818}
819 819
820 820